You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by "Ross Gardler (JIRA)" <ji...@apache.org> on 2005/12/09 22:41:09 UTC
[jira] Updated: (FOR-320) Additional navigation in head element
[ http://issues.apache.org/jira/browse/FOR-320?page=all ]
Ross Gardler updated FOR-320:
-----------------------------
Fix Version: (was: 0.8-dev)
> Additional navigation in head element
> -------------------------------------
>
> Key: FOR-320
> URL: http://issues.apache.org/jira/browse/FOR-320
> Project: Forrest
> Type: New Feature
> Components: Skins (general issues)
> Versions: 0.6, 0.7, 0.8-dev
> Reporter: Ross Gardler
> Assignee: Thorsten Scherler
> Priority: Trivial
> Attachments: patch320.txt
>
> 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>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
Re: [jira] Updated: (FOR-320) Additional navigation in head element
Posted by Ross Gardler <rg...@apache.org>.
Cyriaque Dupoirieux wrote:
> Ross Gardler a écrit :
>
>> Cyriaque Dupoirieux wrote:
>>
>>> I recently updated the siteinfo-meta-navigation contract to make it
>>> work again.
>>> Do we have to keep it open ?
>>
>>
>>
>> That's your call, if you solved this issue then it needs closing.
>
>
> It's not mine, it's your ...
:-)
So it is, I thought it was a different issue - your solution looks fine
to me. In views is fine, we can retrofit to skins if a user demands it
and wants to do the work.
> I close it.
Thanks.
Ross
Re: [jira] Updated: (FOR-320) Additional navigation in head element
Posted by Cyriaque Dupoirieux <Cy...@pcotech.fr>.
Ross Gardler a écrit :
> Cyriaque Dupoirieux wrote:
>
>> I recently updated the siteinfo-meta-navigation contract to make it
>> work again.
>> Do we have to keep it open ?
>
>
> That's your call, if you solved this issue then it needs closing.
It's not mine, it's your ...
The patch I made has not been applied in the skins. But I don't think
it's needed now.
I close it.
Salutations,
Cyriaque,
>
> Ross
>
>
Re: [jira] Updated: (FOR-320) Additional navigation in head element
Posted by Ross Gardler <rg...@apache.org>.
Cyriaque Dupoirieux wrote:
> I recently updated the siteinfo-meta-navigation contract to make it work
> again.
> Do we have to keep it open ?
That's your call, if you solved this issue then it needs closing.
Ross
Re: [jira] Updated: (FOR-320) Additional navigation in head element
Posted by Cyriaque Dupoirieux <Cy...@pcotech.fr>.
I recently updated the siteinfo-meta-navigation contract to make it work
again.
Do we have to keep it open ?
Salutations,
Cyriaque,
Ross Gardler (JIRA) a écrit :
> [ http://issues.apache.org/jira/browse/FOR-320?page=all ]
>
>Ross Gardler updated FOR-320:
>-----------------------------
>
> Fix Version: (was: 0.8-dev)
>
>
>
>>Additional navigation in head element
>>-------------------------------------
>>
>> Key: FOR-320
>> URL: http://issues.apache.org/jira/browse/FOR-320
>> Project: Forrest
>> Type: New Feature
>> Components: Skins (general issues)
>> Versions: 0.6, 0.7, 0.8-dev
>> Reporter: Ross Gardler
>> Assignee: Thorsten Scherler
>> Priority: Trivial
>> Attachments: patch320.txt
>>
>>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
>> <DEFANGED_link rel="next" href="nextPage.html" />
>> <DEFANGED_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>
>> <DEFANGED_IMG class="skin" src="{$skin-img-dir}/next.gif"
>>alt="Next:"/>
>> <xsl:value-of select="$linkText"/>
>> </a>
>> <DEFANGED_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>
>>
>>
>
>
>