Copied to clipboard

Flag this post as spam?

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


  • Damon 217 posts 288 karma points
    Jul 17, 2018 @ 12:07
    Damon
    1

    How can you find which pages in site Form macros are used?

    Hi,

    I want to find out which pages in a site the Form macros have been added.

    I know how to iterate though all the nodes in code but how would you determine if a Form macro is on there?

    Is there a way to do this?

    Thanks!

  • Jeremy Schlosser 10 posts 121 karma points
    1 week ago
    Jeremy Schlosser
    0

    In V7, a DB query will show all nodes where a particular macro is being used:

    DECLARE @macro VARCHAR(50);
    SET @macro = 'yourMacroName';  
    
    SELECT DISTINCT [cmsPropertyData].[contentNodeId], [umbracoNode].[text]
      FROM [Umbraco].[dbo].[cmsPropertyData]
      INNER JOIN umbracoNode ON cmsPropertyData.contentNodeId=umbracoNode.id
      WHERE dataNtext LIKE '%'+@macro+'%';
    

    I'm trying to find something similar that can show the same for V13. No luck yet.

Please Sign in or register to post replies

Write your reply to:

Draft