Hi Bhavya!
Thanks! Directly change page2xhtml.xsl can surely achieve that. However,
my goal is not only to change the single title, but also to understand
the mechanism of lenya. Could you explain a little bit how the i18n
messages and properties are handled in lenya, or are there any documents
i can take a look at ?
In page2xhtml.xsl it is
<td id="publication-title">
<i18n:translate>
<i18n:text>publication-title</i18n:text>
<i18n:param><xsl:value-of select="$author"/></i18n:param>
</i18n:translate>
</td>
While the parameter $author seems to be given in default/sitemap.xmap :
<map:parameter name="author" value="{properties:pubs.default.author}"/>
cheers,
Xiang
Bhavya Sharma wrote:
try to find it inside page2xhtml.xsl in side xslt folder
On 6/10/08, *Xiang Li* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Hi!
As i was customizing the default publication, i tried to change
the publication title ("welcome to ...") at the header of the live
view pages. I did the following changes in the hope of overriding
both the i18n message and the pubs.default.author property:
1. add lenya.properties.xml under $mypub/, and add <property
name="pubs.default.author" value="Me"/>
2. add to the directory $mypub/lenya/resources/i18n/ a file
cmsui.xml with the publication-title message changed.
However, when i built and lauched the web server again, the
publication title was not changed, even after i refreshed several
times. Could somebody tell me why? Is it possible to override the
i18n messages and/or the properties ?
Thanks!
cheers,
Xiang
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
--
Thanks
Bhavya Sharma
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]