Sorry, I must have missed your 2nd reply - I think I know what's wrong (I could be totally wrong, though) - I have a habit of renaming the overly long prefix for the umbraco.library functions to just "umb" - but that of course requires you to know about how namespaces and prefixes work, because suddenly the umbraco.library:NiceUrl() doesn't exist... So here's what should work, in the code I posted above, e.g. for the "Years" node:
Group news by Years and Months
I have a news archieve which is structured like this -
- News
- Year
- Month
- News Item
My doc types are are named as shown above.
What I am trying to do, is create an XSLT file that list the years and months so:
2012
- May
- April
- March
- February
- January
2011
- December
- November
- Oktober
- September
- Etc. etc.
I am pretty sure this is a simple thing to achieve if you know your XSLT well, which I apparently don't... :)
Can someone please help my out here?
Hi Inmedia,
You can start with something like this - a template for everything you need to show:
/Chriztian
Chriztian to the rescue... Again! :D
Thank you so much - It works like a charm! :)
Fantastic with response to my post THAT fast...
Turns out, it needs a little more tweeking, for it to work...
I can list the correct elements with the XSLT you gave me, but when I try to add a NiceUrl link to the list items, I get an error.
Can you help me put a link on every item, including the years?
Hi Inmedia,
Sorry, I must have missed your 2nd reply - I think I know what's wrong (I could be totally wrong, though) - I have a habit of renaming the overly long prefix for the umbraco.library functions to just "umb" - but that of course requires you to know about how namespaces and prefixes work, because suddenly the umbraco.library:NiceUrl() doesn't exist... So here's what should work, in the code I posted above, e.g. for the "Years" node:
Hope that's what you were running into - otherwise, please reply again.
/Chriztian
is working on a reply...