Re: [Hypercontent-users] Navigation
Brought to you by:
alexvigdor
From: Alex V. <av...@co...> - 2004-11-15 17:53:01
|
Hi Carl, First off, you need to make sure you're including your site map or navigation file in the output definition for the secondary pages; you'll also have to make sure the logic in your xsl is going to properly cause the menu to get generated at that level. When you're in a subdirectory, you can't of course grab the related element with an equals comparison on the directory - what we do here is use the xsl starts-wth function. For example, <xsl:for-each select="$navigation/nav-item"> <xsl:choose> <xsl:when test="starts-with(@directory,/cms:wrapper/cms:source/@directory"> <!-- display active navigation link --> </xsl:when> <xsl:otherwise> <!-- display inactive navigation link --> </xsl:otherwise> </xsl:choose> </xsl:for-each> If you have trouble with it, send along your project definition and XSL and I'll have a look. -Alex On Nov 15, 2004, at 8:38 AM, Carl Barrow wrote: > Hi Alex > > Just one more thing (for now) that I need help with...... > > My site here automatically creates menu items down the left which > works fine at root level and then also down to the next set of > directories, for example 'root/first level/ ' If I create sub > directories in the first level I don't get any menu items on those > pages. I need to keep the menu items for those pages the same as the > ones visible in my first level directories. How can I do this? > > Thanks > Carl > > -- > ************************************ > > Carl Barrow > Web Developer > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > ************************************ > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: InterSystems CACHE > FREE OODBMS DOWNLOAD - A multidimensional database that combines > robust object and relational technologies, making it a perfect match > for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users > |