I´m new to Umbraco, but so far I really like the system. But I have no experience with Xslt and now I try to make my first sub nav for my list document macro. My macro is called ListDocument, and I try to show the three latest post from that list.
You find it in the developer section, when you are creating a new XSLT macro you can select it from the dropdown of predefined XSLT snippets.
When you are trying to see your navigation, which page are you trying to see it in? I think your current macro will only work when you are at the Runway homepage.
as Jan said, when you create a new xslt, there is a dropdown which allows you to choose from a series of common xslt snippets.
some of these require parameters passed to them , but i think that the one you need would be the 'list sub pages by document type', and this should work out of the box with no ammends. just select that snippet from the dropdown, save the resulting xslt, and away you go.
if it is not quite right, those snippets are generally easy enough to follow and adjust to suit your needs.
My first xslt sub-nav
Hi,
I´m new to Umbraco, but so far I really like the system. But I have no experience with Xslt and now I try to make my first sub nav for my list document macro. My macro is called ListDocument, and I try to show the three latest post from that list.
This is the Xslt-code:
I'm running Umbraco v4 locally using Cassini web server.
My problem is that nothings shows in my sub nav, and thats a problem ;-)
Let me now if you need more information.
thanks
Jonas
have you tried the inbuilt 'list sub pages by document type' xslt?
it sounds like it should do exactly what you are after
How does your content-structure look?
Have you placed the XSLT macro in the right template perhaps?
/Jan
Yes I think I have placed the xslt macro in the right template, I see the headline for my sub nav.
I used the Runaway project to get a start and put the xslt macro on the start page, and my structure looks like this, :
Runway Homepage
-Installing runway modules
-Go futher
-Getting started
-Faq
-News (ListDocument)
- News 1
- News 2
- News 3
bl_ndp_lot:
Where do I find it?
Hi Jonas
You find it in the developer section, when you are creating a new XSLT macro you can select it from the dropdown of predefined XSLT snippets.
When you are trying to see your navigation, which page are you trying to see it in? I think your current macro will only work when you are at the Runway homepage.
/Jan
Jonas,
as Jan said, when you create a new xslt, there is a dropdown which allows you to choose from a series of common xslt snippets.
some of these require parameters passed to them , but i think that the one you need would be the 'list sub pages by document type', and this should work out of the box with no ammends. just select that snippet from the dropdown, save the resulting xslt, and away you go.
if it is not quite right, those snippets are generally easy enough to follow and adjust to suit your needs.
fergus
I don´t know what I did different, but when I tried my code on my other solution it worked! So problem solved.
Thanks for helping me!
is working on a reply...