Return-Path: Delivered-To: apmail-lenya-user-archive@www.apache.org Received: (qmail 7752 invoked from network); 13 Mar 2009 14:28:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Mar 2009 14:28:05 -0000 Received: (qmail 9428 invoked by uid 500); 13 Mar 2009 14:27:59 -0000 Delivered-To: apmail-lenya-user-archive@lenya.apache.org Received: (qmail 9401 invoked by uid 500); 13 Mar 2009 14:27:59 -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 9389 invoked by uid 99); 13 Mar 2009 14:27:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Mar 2009 07:27:59 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of geldner.list.reg@gmx.net designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 13 Mar 2009 14:27:50 +0000 Received: (qmail 1188 invoked by uid 0); 13 Mar 2009 14:27:27 -0000 Received: from 212.111.241.81 by www102.gmx.net with HTTP; Fri, 13 Mar 2009 15:27:26 +0100 (CET) Content-Type: text/plain; charset="utf-8" Date: Fri, 13 Mar 2009 15:27:26 +0100 From: "Lars Geldner" In-Reply-To: Message-ID: <20090313142726.122500@gmx.net> MIME-Version: 1.0 References: <20090312165953.258090@gmx.net> <20090313090756.35310@gmx.net> <20090313093653.137870@gmx.net> Subject: Re: share sites between publications To: user@lenya.apache.org X-Authenticated: #25113592 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 X-Provags-ID: V01U2FsdGVkX18uvykgBbguD27iUHXp1a8vsXyd5trdXV0o00RaQz K04erl6LXcpZFzARVycu2/DNdS+ey9rJOjtw== Content-Transfer-Encoding: 8bit X-GMX-UID: fl+cYfOILi50DNAXFWppo35rZml1ZJgN X-FuHaFi: 0.49 X-Virus-Checked: Checked by ClamAV on apache.org Hi Andreas, in the meanwhile I installed Lenya 2.0.2 with two simple pubs. Including pages between the pubs works fine (also with format parameter). Then I created two new pubs in our Lenya 2.0 production system. The tests failed. => There could be an bug in Lenya 2.0 or our production system is influenced in another manner... Lars -------- Original-Nachricht -------- > Datum: Fri, 13 Mar 2009 10:59:13 +0100 > Von: Andreas Hartmann > An: user@lenya.apache.org > Betreff: Re: share sites between publications > Hi Lars, > > Andreas Hartmann schrieb: > > Hi Lars, > > > > Lars Geldner schrieb: > >> Hi Andreas, > >> > >> * Ok, if I delete the pattern for "includetest.html" and add the > >> transformer > >> > >> to the pattern > >> > >> then it works fine when including pages of the same publication! > Thanks! > > > > alright, you've been quicker than me :) > > > >> But if I'm changing the referenced UUID to a page of another > >> publication like that > >> > >> >> > src="lenya-document:d9e80e00-7373-11dd-8142-93a30b5c925c,pub=robotronsea?format=xhtml"/> > >> > >> > >> Lenya says "LinkException: The target doesn't exist!". > > > > This is strange. Which version of Lenya are you using? This sounds like > > a bug, maybe the link resolver doesn't take the pub parameter into > > account. Would you mind filing a bug report? TIA! > > BTW, are you sure that the exception was thrown by the include > transformer and not by a subsequent uuid2url transformation which > couldn't resolve an internal link in the included document? > > -- Andreas > > > > > >> > >> -------- Original-Nachricht -------- > >>> Datum: Fri, 13 Mar 2009 10:07:56 +0100 > >>> Von: "Lars Geldner" > >>> An: user@lenya.apache.org > >>> Betreff: Re: share sites between publications > >> > >>> 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: > >>> > >>> >>> > src="lenya-document:1bce25c0-4381-11dd-9dcc-b5128f75d5b3?format=xhtml"/> > >>> > >>> (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: > >>> > >>>
> >>>
> >>> >>> src="lenya-document:1bce25c0-4381-11dd-9dcc-b5128f75d5b3?format=xhtml" > >>> /> > >>>
> >>>
> >>> That means, Lenya has not transformed the include element. > >>> > >>> * IMHO I have to add an include transformer to the publication > >>> sitemap, is > >>> it right? 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? > >>> > >>> 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 > >>> -- > >>> Nur bis 16.03.! DSL-Komplettanschluss inkl. WLAN-Modem für nur 17,95 > >>> ¿/mtl. + 1 Monat gratis!* > >>> http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a > >>> > >>> --------------------------------------------------------------------- > >>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org > >>> For additional commands, e-mail: user-help@lenya.apache.org > >> > > > > > > > -- > 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 -- Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org For additional commands, e-mail: user-help@lenya.apache.org