select * from nt:base where mgnl:template=<template name> For example select * from nt:base where mgnl:template='stkArticle'
Run the query in the website workspace. --Antti On Mar 10, 2011, at 3:01 PM, Hans Wichman wrote: > Hi list, > > I'm trying to come up with a JCR query that returns all pagepaths whose > actual pages are using a specific template, but not having much luck sofar. > > The idea is that given a templatename, I can show a list of pages using that > template. > > I've been using another approach sofar based on contentutils and filters but > it is agonizingly slow, hence I thought I'd try my luck through the JCR > queries. > > regards > Hans > > > > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
