Copied to clipboard

Flag this post as spam?

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


  • Ben Edwards 11 posts 32 karma points
    Feb 03, 2011 @ 19:58
    Ben Edwards
    0

    Find pages with particular macro in WYSIWYG editor

    Is it possible to use XSLT to find pages that contain a macro of a certain type in a WYSIWYG property names bodyText? If so can anyone provide an example? Thanks in advance

  • Sean Mooney 131 posts 158 karma points c-trib
    Feb 03, 2011 @ 21:23
    Sean Mooney
    0

    you should be able to write something like this:

    <xsl:for-each select="umbraco.library:GetXmlAll()//* [@isDoc and contains(bodyText, 'name of macro')]" >
        <!-- Perform actions here -->
        <xsl:value-of select="@id" /><br />
    </xsl:for-each>

    That is for the new schema let me know if you need it in the old format

    -Sean

Please Sign in or register to post replies

Write your reply to:

Draft