You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by is...@cocoondev.org on 2004/10/08 17:37:55 UTC
[JIRA] Created: (FOR-320) Additional navigation in head element
Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://issues.cocoondev.org//browse/FOR-320
Here is an overview of the issue:
---------------------------------------------------------------------
Key: FOR-320
Summary: Additional navigation in head element
Type: New Feature
Status: Unassigned
Priority: Trivial
Project: Forrest
Components:
Forrest skins
Versions:
HEAD
Assignee:
Reporter: Ross Gardler
Created: Fri, 8 Oct 2004 10:37 AM
Updated: Fri, 8 Oct 2004 10:37 AM
Description:
At least two users (myself included) need the ability to link to the previous and next pages. This can be done by adding the follwoing to head
<link rel="next" href="nextPage.html" />
<link rel="prev" href="prevPage.html" />
next is the following page in the logical site.xml order.
prev is the previous page in the logical site.xml order
The skin then then choose to render this or not on a per page basis.
----
As a possible starting point I have a partial solution (it does not use link elements and only does next):
<xsl:template name="navigationLinks">
<xsl:if test="not($config/navigation/next/@enabled = 'false')">
<span class="navigation">
<xsl:for-each select="//div[@class='menu']//span[@class='sel']">
<xsl:choose>
<xsl:when test="../following-sibling::*">
<xsl:variable name="linkText">
<xsl:value-of select="../following-sibling::*"/>
</xsl:variable>
<xsl:variable name="dirname">
<xsl:call-template name="dirname">
<xsl:with-param name="path"
select="../following-sibling::*/a/@href"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="filename">
<xsl:call-template name="filename">
<xsl:with-param name="path"
select="../following-sibling::*/a/@href"/>
</xsl:call-template>
</xsl:variable>
<a class="dida">
<xsl:attribute name="href"><xsl:value-of
select="$dirname"/><xsl:value-of select="$filename"/></xsl:attribute>
<img class="skin" src="{$skin-img-dir}/next.gif"
alt="Next:"/>
<xsl:value-of select="$linkText"/>
</a>
<img class="spacer" src="{$spacer}" alt="" width="20"
height="8" />
</xsl:when>
<xsl:otherwise>
(Last in Section - choose a new section from the menu)
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</span>
</xsl:if>
</xsl:template>
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.cocoondev.org//secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira