[vote] doc.isTemplate
Sergiu Dumitriu
sergiu.dumitriu at gmail.com
Wed Jan 3 22:48:59 CET 2007
Hi,
I often see queries like "select something where doc.fullName !=
XWiki.SomeTemplate", which is definitely not nice. I would like to add a new
property to the document class, which indicates if the document is a
template. Also, we should provide an api to select documents containing a
certain type of objects, like:
$xwiki.searchDocumentsWithObjects("XWiki.ArticleClass", [extraquery],
[count, start])
This should behave like the current searchDocuments, but it also writes the
from and where parts of the query that tie the right type of object to the
document, and filters out the template documents.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xwiki.org/pipermail/devs/attachments/20070103/92d954e3/attachment.htm
More information about the devs
mailing list