Return-Path: Delivered-To: apmail-lenya-user-archive@www.apache.org Received: (qmail 43666 invoked from network); 13 Mar 2009 09:40:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Mar 2009 09:40:09 -0000 Received: (qmail 75621 invoked by uid 500); 13 Mar 2009 09:40:08 -0000 Delivered-To: apmail-lenya-user-archive@lenya.apache.org Received: (qmail 75589 invoked by uid 500); 13 Mar 2009 09:40:08 -0000 Mailing-List: contact user-help@lenya.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@lenya.apache.org Delivered-To: mailing list user@lenya.apache.org Received: (qmail 75580 invoked by uid 99); 13 Mar 2009 09:40:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Mar 2009 02:40:08 -0700 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gcclu-lenya-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Mar 2009 09:39:57 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Li3rc-0003q2-4I for user@lenya.apache.org; Fri, 13 Mar 2009 09:39:36 +0000 Received: from 77-56-73-179.dclient.hispeed.ch ([77.56.73.179]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 13 Mar 2009 09:39:36 +0000 Received: from andreas by 77-56-73-179.dclient.hispeed.ch with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 13 Mar 2009 09:39:36 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: user@lenya.apache.org From: Andreas Hartmann Subject: Re: share sites between publications Date: Fri, 13 Mar 2009 10:39:19 +0100 Lines: 114 Message-ID: References: <20090312165953.258090@gmx.net> <20090313090756.35310@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 77-56-73-179.dclient.hispeed.ch User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) In-Reply-To: <20090313090756.35310@gmx.net> Sender: news X-Virus-Checked: Checked by ClamAV on apache.org Hi Lars, Lars Geldner schrieb: > Hi Andreas, > > * I added a new page to my publication called "includetest". > > * In the body of that page I added only one div element: >
> > * In the XSLT stylesheet webapps/lenya/lenya/pubs/mypub/xslt/page2xhtml.xsl I added the following template: > > > > (In the first step I only want to test including a page of the same publication, therefore the parameter "pub" is missing. The referenced document is in the same publication.) > > * When I open the page "includetest", this page is empty. The HTML source code of that page looks like: > >
>
> >
>
> That means, Lenya has not transformed the include element. > > * IMHO I have to add an include transformer to the publication sitemap, is it right? Yes, this is correct. > But when I add something like that > > > > > > Lenya says "Must set a generator before adding transformer 'cinclude' > ". I think, I'm on the right way, but can you please provide my a hint of how to transform the include element? You have to add the include transformation step to an existing pipeline that already processes the document. You could for instance use this pipeline in the sitemap of the default publication: The position of the transformation step depends on the steps you want to execute before/after the inclusion, but it should certainly be positioned before the uuid2url transformer. BTW, it will become a bit tricky to rewrite the links in the included document. If it contains internal links without the pub parameter, the uuid2url transformer will try to resolve them in the current publication, which will lead to errors. You could extend the link resolver so that it looks in other publications if the document is not found in the current publication. HTH, -- Andreas > > Thanks in advance! > > Lars > >> Datum: Thu, 12 Mar 2009 21:43:49 +0100 >> Von: Andreas Hartmann >> An: user@lenya.apache.org >> Betreff: Re: share sites between publications > >> Hi Lars, >> >> Lars Geldner schrieb: >>> Dear lenya users and developers, >>> >>> we have two publications. How can we integrate a site of one >>> publication into another publication? >> with the term "site", are you referring to a single page (i.e., Lenya >> document), or to a subsite (i.e., sub-sitetree)? >> >>> For example, we want to have a >>> link in the site tree of the first publication. When the user clicks >>> that link, a site of another publication should be opened in that >>> way, that only the site's content is displayed (within the frame of >>> this publication) but not the site tree of the second publication. >> If you want to include a page, you can just call it using the >> lenya-document: protocol or using the site: protocol, appending the >> format parameter for the format you need: >> >> >> >> It is important to include the pub parameter because otherwise the >> lenya-document source factory will look for the document only in the >> current publication. >> >> HTH, >> >> -- Andreas >> >> >> -- >> Andreas Hartmann, CTO >> BeCompany GmbH >> http://www.becompany.ch >> Tel.: +41 (0) 43 818 57 01 > -- Andreas Hartmann, CTO BeCompany GmbH http://www.becompany.ch Tel.: +41 (0) 43 818 57 01 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org For additional commands, e-mail: user-help@lenya.apache.org