Quantcast
Channel: ActiveTopics
Viewing all articles
Browse latest Browse all 72689

Subnavigation from a root defined by document type

$
0
0

Hi everyone,

I'm working on an Umbraco solution for our company intranet and I'm trying to solve a specific problem. Basically I have a document type called "Site Homepage" (alias SiteHomepage) that I wish to serve as the upper and lower bound of my subnavigation XSLT. Therefore, the site homepage and all child pages will draw subnavigation going only up as far as the nearest ancestor SiteHomepage, and only as far down as a descendant SiteHomepage.

For example, if I have the following structure:

Content
- Site 1 (SiteHomepage)
- - Page 1A
- - Page 1B
- - Site 1C (SiteHomepage)
- - - Page 1CA
- - - Page 1CB
- Site 2 (SiteHomepage)
- - Page 2A
- - - Page 2AA
- - Page 2B
- Site 3 (SiteHomepage)
- - Page 3A
- - Page 3B

Then viewing page 1A would show the following subnavigation list:

- Site 1
- Page 1A
- Page 1B
- Site 1C

Viewing page 2AA would show the following:

- Site 2
- Page 2A
- - Page 2AA
- Page 2B

And viewing page 1CA would show the following:

- Site 1C
- Page 1CA
- Page 1CB

I am really having a hard time with the logic governing this. I've tried basing my macro off the existing Subnavigation XSL templates in Umbraco, and I've also tried using the Cogworks Flexible Navigation package, but I have difficulty seeing the trees for the forest.

Any help would really save my skin!


Viewing all articles
Browse latest Browse all 72689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>