Being able to find pages that include a specific macro is incredibly helpful, however I have the opposite challenge: finding pages that do NOT include a specific macro.
In this case the macro is the "include page" macro. I've tried many variations on search syntax but no joy. Help?
(In our wiki, most pages include a customized search bar and help links via an included page. I want to find the pages that *don't* include that page so I can add the search bar where it's missing.)
Thanks in advance!
Hi Kurt, I took a look at this. Since I'm not a wikispace admin, just a lowly and humble wiki admin :-) I finally got ordinary search parameters to work:
type:page AND NOT macroName: include*
This found all pages in our wiki that DON'T include the "include page" macro. This will help me find and update all the pages that still need a specific page include.
There is probably another search parameter that can help me narrow it down further to pages that don't include a *specific page* (instead of pages that don't have any includes at all) but I haven't worked that out yet.
Thanks for getting me on the right track learning about search though!
Hi Michelle
shows how to list pages that have a macro in use, so i think by modifying the where clause
you could get the results that you want
AND bc.body not LIKE '%ac:name="<macro_name>"%'
instead of
AND bc.body LIKE '%ac:name="<macro_name>"%';
you might need to add additional clauses to get to the final result
Cheers
Kurt
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.