The node in the content tree is "Nyheder" with the document type "News"
I got the xslt from my old thread http://forum.umbraco.org/yafpostsm23317News-list-on-all-pages.aspx but right now I have no access to earlier projects where I got it to work... Please help me! Thanks
News list not showing
Hi, I'm trying to get this macro/xslt to show me the two latest news items on all pages
Here's the xslt
[code]
]>
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt"
xmlns:umbraco.library="urn:umbraco.library"
exclude-result-prefixes="msxml umbraco.library">
[/code]
The node in the content tree is "Nyheder" with the document type "News"
I got the xslt from my old thread http://forum.umbraco.org/yafpostsm23317News-list-on-all-pages.aspx but right now I have no access to earlier projects where I got it to work... Please help me! Thanks
/Anette
Hi Annette
How about you altered the code a bit?
I would suggest you use something like this
[code]
]>
<>
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt"
xmlns:umbraco.library="urn:umbraco.library"
exclude-result-prefixes="msxml umbraco.library">
[/code]
An then of course make sure that you have placed the macro in your master template so it gets displayed on all pages.
Maybe it is not even neccesary to change the code as I suggested? :)
Thank you, your code works! :)
is working on a reply...