11 Feb
2015
11 Feb
'15
3:16 p.m.
On 02/09/2015 05:07 PM, walid yaich wrote:
Hi XWIKI Team,
Please, is there any way to make a search inside page sources. I need to search for a word inside page sources in the Space "Main".
Even by a query on the database.
You want to look into the "content" attribute of the page. I guess this would look somewhat like: {{velocity}} #set($queryStr = "where doc.space='Main' and doc.content like '%{{velocity%'") #set($query = $services.query.xwql($queryStr)) #foreach($res in $query.execute()) * [[$res||queryString="viewer=code"]] #end {{/velocity}} this shows all pages that contain a velocity macro (kinda), by searching the content for '{{velocity' hope this hepls clemens