On 11/20/05, Roy, Ansuman <[EMAIL PROTECTED]> wrote:
> 1. I would like to add a hyperlink to every new page created that would point 
> to the parent page from where the child page is extending

Assuming the defaults:
1. The breadcrumb navigation is aggregated.
2. There is a template that copies all elements without a specific template.
3. There are no templates that damage A tags.
You can add a link to the parent document with:
<xsl:apply-templates select="xhtml:[EMAIL PROTECTED] = 
'breadcrumb']/xhtml:a[last()]"/>

This will display navigation link for subdocuments, and nothing for
top-level documents.


> 2. at the same time another link should be created on the parent page leading 
> to the child page
> How do i do it?? I had seen sitetree2nav.xsl but didnt get how to go about 
> and do it.
> can you tell me how can it be done??
We use the term "menu" for a list of pages.  The default menu shows
all top-level documents, plus subdocuments on the path to the current
page.

To just show the subpages for the current top-level page, see:
http://solprovider.com/lenya/menusection

To show only the menu of the current page and its subpages:
 <xsl:apply-templates select="xhtml:[EMAIL PROTECTED] =
'menu']//xhtml:[EMAIL PROTECTED] = 'menuitem-selected']/.."/>

To remove the current page from the menu, use a mode as in the
menusection example.

solprovider

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

Reply via email to