Re: current resource

qMax <[email protected]>
Newsgroups gmane.comp.cms.bitflux.general
Message-ID <[email protected]>
Tuesday, October 11, 2005, 3:36:57 PM, qMax wrote:

q> Re.

q> I cannot figure out how to get uri of current resource.
q> Current collection is marked "selected" in navtree plugin output,
q> but current resource in collection is not marked.

Following can work for collections not deeper then 2:
    <xsl:variable
        name="curr_coll"
        select="$navitreePlugin/collection/items/collection[@selected='selected']"/>
    <xsl:variable
        name="curr_resource"
        select="substring-before(substring-after($requestUri,$curr_coll/uri),'.html')"/>

Is there a way to implement '@current' attribute in navtree ?

-- 
 qMax

-- 
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.