Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Anette 41 posts 59 karma points
    Jun 10, 2009 @ 12:41
    Anette
    0

    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

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Jun 10, 2009 @ 21:48
    Jan Skovgaard
    100

    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? :)

  • Anette 41 posts 59 karma points
    Jun 11, 2009 @ 08:39
    Anette
    0

    Thank you, your code works! :)

Please Sign in or register to post replies

Write your reply to:

Draft