简体   繁体   中英

Umbraco macro - Displaying content in all nodes

I have a navigation bar in which all links are grabbed from Umbraco items (entered by the user). This navigation bar needs to be displayed on all pages. I tried inserting the items into the master template, but the links are not passed down to slave nodes. So, I'm assuming I need some sort of a macro which grabs the content and displays on all pages.

Does anyone have any suggestions?

I answered a question about creating a multi-level XSLT navigation menu a while back:

Create multilevel menu for umbraco using XSLT?

Perhaps that will get you going?

I think the key is that you need to get to the top of the content tree (home), then build the navigation. Otherwise the nav will be based on where in the tree the current page is.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM