Copied to clipboard

Flag this post as spam?

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


  • Kelsee Ishmael 71 posts 158 karma points
    May 19, 2009 @ 00:24
    Kelsee Ishmael
    0

    Displaying a list of a specific document type (Umbraco 4)

    Hello,

    I am new to xslt and I am trying to display a certain type of document node underneath a parent node. I have everything working except that my "for-each" code is displaying for other node types.

    [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">







    ----------------------------------------------

    Hello

    Title:

    Thumb:{./data[@alias = 'libItemTitle']}

    Full File:Download

    Lib Notes:









    [/code]


    Basically, I have a parent node:

    Library
    |- MediaLibraryItem
    |- MediaLibraryItem
    |-Page

    I want it to display a "for-each" for just the MediaLibraryItem. Right now, it is also displaying the "for-each" for the page node. I had this working before in Umbraco 3, but I am now using V4.

    I know this particular line of code is the issue.
    [code]
Please Sign in or register to post replies

Write your reply to:

Draft