Re: How to get the publication name - Lenya 2

florent andrĂ© <[email protected]> Tue, 05 Jun 2012 14:41:23 +0200
Newsgroups gmane.comp.cms.lenya.devel
Message-ID <[email protected]>
Look at the {page-envelope:publication-id}

This is what used in the default publication
* xslt : 
http://svn.apache.org/repos/asf/lenya/branches/BRANCH_2_1_X/src/pubs/default/xslt/page2xhtml.xsl
* sitemap : 
http://svn.apache.org/repos/asf/lenya/branches/BRANCH_2_1_X/src/pubs/default/sitemap.xmap

HTH

++


On 06/05/2012 11:40 AM, Gerd Schrick wrote:
> 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
>