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 16 posts 148 karma points
    May 02, 2024 @ 17:42
    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.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies