[xwiki-dev] [vote] doc.isTemplate
Vincent Massol
vincent at massol.net
Thu Jan 4 00:18:15 CET 2007
Hi Sergiu,
From: Sergiu Dumitriu [mailto:sergiu.dumitriu at gmail.com]
Sent: mercredi 3 janvier 2007 22:49
To: xwiki-dev at objectweb.org
Subject: [xwiki-dev] [vote] doc.isTemplate
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.
With the 1.0 approaching I wonder if that’s required now and whether this could be postponed to 1.1. I’m also worried this could break something. WDYT?
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.
+1, I can see the need for this.
Thanks
-Vincent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xwiki.org/pipermail/devs/attachments/20070104/9a0635e3/attachment.html
More information about the devs
mailing list