DECLARE @docTypeId AS int SET @docTypeId = 123 // Doctype Id to check
SELECT * FROM cmsContent A INNER JOIN umbracoNode B ON A.nodeId = B.id WHERE contentType = @docTypeId
/* content nodes using a templateId */
DECLARE @templateId AS int SET @templateId = 123 // Template Id to check
SELECT C.path AS 'Path', C.level AS 'Level', C.id AS 'Node Id', C.text AS 'Text', A.alias AS 'docType Alias' FROM cmsContentType A LEFT OUTER JOIN cmsContent B ON A.nodeId = B.contentType INNER JOIN umbracoNode C ON B.nodeId = C.id WHERE A.nodeId IN ( SELECT contentTypeNodeId FROM cmsDocumentType A INNER JOIN cmsContentType B ON A.contentTypeNodeId = B.nodeId WHERE templateNodeid = @templateId ) ORDER BY text ASC
Pages using this Document Type or Template ?
Is it possible to get a list of pages who are using a specific document type or template ?
Hi Sebastian,
How about a bit of SQL:
HTH,
Hendy
Hi Sebastian
I think the "Sitemap" snippet could perhaps be used for this?
Then you should be able to just alter the XSLT to write out the content from @nodeTypeAlias and @template I suppose? :)
/Jan
is working on a reply...