5 users online. Create an account or sign in to join them.Users
Nav Question
This is a closed discussion with 8 replies, filed under General.
Search
I think the Symphony way of creating a navigation would be to add a page type to all the pages you like to add to your navigation, e. g. nav. You could then create a data source for System > Navigation in the data source manager which will produce the XML needed to dynamically create your navigation. Just add this data source to your pages and have a look at the resulting XML using the debug mode (appending ?debug to your front-end URL).
If you like to stick with your current approach, keep in mind that <xsl:import /> has to be the very first statement inside your XSL stylesheet.
ok, that would be under the page settings where it lists page resources, I would create a data source called Nav, with all the paramaters I want etc. then Link the two?
I will try, not that advanced yet…
I would create a data source called Nav, with all the paramaters I want etc. then Link the two?
Correct.
ok in the debug page I get In this case then it still needs a source/section right? At which point I could created my own or if it is dynamic I would be pulling the source then from the pull down that has “System > navigation?”
Thanks for your time :)
ah, ok now I still need it to loop throught the resource using for:each…
I’m not sure if I understood your first question. But yes you have to loop through the resulting XML using either for-each or apply-templates.
I was alittle confused in thinking that the nav is created dynamically in the sense that all you have to do is create a data source without creating entries for it, as till will figure out the pages you have and create links automaticall…
SO my set up now is that I have and source call nav with a data source that is applied to my pages..
Closed… continued at another nav question :).
Create an account or sign in to comment.
I am recreating I site done previously so I can learn the cms.
I have a nav, that I want to add as an “include.” I know this is not the best way as there is a dynamic way of doing it, but for now it will do. I added a page called nav.xsl and figure I would import this into my main page using
<xsl:import href="nav.xsl"/>But I get a compile error.