Created
February 20, 2016 02:15
-
-
Save adamzuckerman/ce12a9f1de9b18b35940 to your computer and use it in GitHub Desktop.
Find the pages on DNN where a module has been used
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT TabID, REPLACE(HTTPAlias + TabPath, '//', '/') AS ThePage | |
FROM Tabs | |
INNER JOIN PortalAlias | |
ON Tabs.PortalID = PortalAlias.PortalID | |
AND PortalAliasID = ( | |
SELECT MIN(pa.PortalAliasID) | |
FROM PortalAlias AS pa | |
WHERE Tabs.PortalID = pa.PortalID | |
) | |
WHERE TabID IN (SELECT TabID FROM TabModules WHERE ModuleID IN ( 0 )) | |
; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Purpose
The purpose of this query is to create a list of all of the webpages on which the specified modules are included.
Usage
0
on line 10 with a comma separated list of module IDs.