Hi Rudolf, interesting, I also created a FragmentGenerator (mainly for use in our "ContentUnits") that supports additional parameters.
We're still using the 2.0.3 here. Maybe I could find the time to check for the current branch. Thanks, Gerd rudolf.korhum...@uniklinik-freiburg.de hat am 5. Juni 2012 um 16:19 geschrieben: > Hi Gerd, > > > > yes, my problem is the same as yours. > > Your solution sounds great - thank you very much for this hint. :-) > > > > trying ... 10 min later ... now it works! > > > Fine ! > > > > How do you access the navigation title of the hidden document? > > We use the navigation module (http://lenya.apache.org/docu20/ > > standardmodules/navigation.html) and it only delivers the site:link > > element (which holds the label) for visible items. I solved this by > > having the node visible but ignore it in the main navigation. > > I'm sorry but I forgot to tell you. (and update the documentation) > I have added the parameter invisilble to the siteFragmentGenerator in the > 2_1_X branch. > See also: > http://svn.apache.org/viewvc/lenya/branches/BRANCH_2_1_X/src/modules/navigation/java/src/org/apache/lenya/modules/navigation/SiteFragmentGenerator.java?r1=907008&r2=1243049 > If the value is true you'll get the labels even if the nodes are > invisible. > If you use the current 2.1.x branch this should work. > > (Before I didn't render (visible) doucuments with id's starting with - in > navigation menus ) > > Rudolf > > > > > Thanks, > > Gerd > > > > rudolf.korhum...@uniklinik-freiburg.de hat am 5. Juni 2012 um 14:55 > > geschrieben: > > > > > Hi Gerd, > > > > > > I don't know if there is an input module or somehting else to get the > > > publicaiton name (not the pubid). > > > But maybe your problem is like ours for which we have an different > > > solution. > > > We wated to use the publicaiton name as headline.. > > > Now we use the navigation title of a hidden document i.e -pubname to > > > provide this information. > > > The advatage is, that we can have names in different languages andleave > it > > > up to the edior to change it. > > > You can find an example at http://ims.uniklinik-freiburg.de. > > > > > > HTH > > > > > > Rudolf > > > > > > Gerd Schrick <m...@schrick-design.de> schrieb am 05.06.2012 11:40:13: > > > > > > > Von: Gerd Schrick <m...@schrick-design.de> > > > > An: dev@lenya.apache.org > > > > Datum: 05.06.2012 11:40 > > > > Betreff: How to get the publication name - Lenya 2 > > > > > > > > Dear Lenya Devs, > > > > > > > > I want to use the name of the publication (as set in {pub-id}/ > > > > config/publication.xml) in my page2xhtml.xsl. > > > > Is there a 'simple' way (like an input module?) to read this config- > > > > value in the publication sitemap.xmap to pass it as parameter to the > > > > xslt-transformation? > > > > > > > > My intention is to use templating and the layout should reflect the > > > > publication name without the need to edit/overwrite something in the > > > > file system. > > > > > > > > Thanks a lot in advance, > > > > Gerd > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: dev-unsubscr...@lenya.apache.org > > > For additional commands, e-mail: dev-h...@lenya.apache.org > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@lenya.apache.org > For additional commands, e-mail: dev-h...@lenya.apache.org >