You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by "Roy, Ansuman" <an...@logicacmg.com> on 2005/11/20 08:14:27 UTC

info about links on page

Hi,
I have a query regarding adding links in the page:

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

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??

regards,

Anshuman


This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: info about links on page

Posted by so...@gmail.com.
On 11/20/05, Roy, Ansuman <an...@logicacmg.com> 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:div[@id = '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:div[@id =
'menu']//xhtml:div[@class = 'menuitem-selected']/.."/>

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

solprovider

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org