For the footer navigation of my website, I am considering assigning a related links datatype to the home page, and then having a macro that pulls out the selected links and displays the links in the site footer.
Does anyone know the xslt query syntax for selecting just the root node, without traversing back through all the ancestor nodes?
The best way for you to get a good answer would be to post it as a new question, since this has already been marked as solved. Others may also do a search for something with two navigations and thus, would much easier find that question too.
Rest assured, Someone will hop in with an answer as soon as you've posted it :-)
Select Root Node Only
Hi,
For the footer navigation of my website, I am considering assigning a related links datatype to the home page, and then having a macro that pulls out the selected links and displays the links in the site footer.
Does anyone know the xslt query syntax for selecting just the root node, without traversing back through all the ancestor nodes?
Hi Tim,
Traversing back up the tree is usually fine to do. However you can select a node by it's id if you want.
There really shouldn't be a problem with traversing back up the nodes, unless you have a really, really long path maybe.
To go all the way back up to the root, I use:
<xsl:variable name="absoluteRoot" select="$currentPage/ancestor-or-self::root" />
But usually I want to stay within the root of the current site (as I am using the multisite feature of Umbraco a lot), then I use:
<xsl:variable name="currentSiteRoot" select="$currentPage/ancestor-or-self::node" />
This is great stuff, I know I'm a little late in this, and wanted to know if you have 2 sites in umbraco how can I show 2 navigations on one page?
Thanks GI
Hi GI,
The best way for you to get a good answer would be to post it as a new question, since this has already been marked as solved. Others may also do a search for something with two navigations and thus, would much easier find that question too.
Rest assured, Someone will hop in with an answer as soon as you've posted it :-)
/Chriztian
is working on a reply...