Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Lenya Wiki" for change 
notification.

The following page has been changed by JosephGrist:
http://wiki.apache.org/lenya/HowToDefaultPublicationUsefulChanges

------------------------------------------------------------------------------
  
  '''Note:''' If you use custom document types make sure you change the 
<yourdoctype>2xhtml.xsl stylesheets to generate the {{<div id="title">}} tag.
  
+ == Hand the Navigation Title through to the browser Method 2 ==
+ 
+ This is a useful way of making the menu bar in the browser display the same 
text as found on the link in the menu, i.e. the navigation title NOT from the 
metadata.  This means that your content editors need only maintain the document 
name in one place.
+ 
+ In publication_sitemap.xmap, add a new line
+ 
+ {{{
+     <map:parameter name="document-label" 
value="{page-envelope:document-label}"/>
+ }}}
+ 
+ within the clause <map:transform src="xslt/page2xhtml-{4}.xsl">.  This makes 
the navigation title (document-label) available to your xslt.  Then in your 
xslt (such as page2xhtml-xhtml.xsl) make the top of the template something like 
this:
+ 
+ {{{
+ 
+ <xsl:param name="document-label"/>
+ 
+ <xsl:template match="cmsbody"> 
+ 
+ <html>
+   <head>
+     <title><xsl:value-of select="$document-label"/></title>
+     <link href="css/styles.css" rel="stylesheet" media="screen, print" 
type="text/css"/>
+   </head>
+ 
+ }}}
+ 
+ It's worth noting that if you play with the navigation title, make a mistake, 
and end up returning a blank title, lenya tends to create HTML for the title in 
the form <head><title /></head>.  Internet Explorer can't cope with this and 
will return a blank page.  If you are getting blank pages in IE, check for this 
problem.
+ 
  = Useful Tweaks in Special Contexts =
  
  == Allow users to override checkouts by other users ==

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to