Assuming the page that lists all the pages with stubs exists under the homepage and is called 'All pages with stubs', just add another -path argument, like this:
{{wiki.search('content:magic -path:"Template:*" -path:All_pages_with_stubs')}}
Assuming the page that lists all the pages with stubs exists under the homepage and is called 'All pages with stubs', just add another -path argument, like this:
{{wiki.search('content:magic -path:"Template:*" -path:All_pages_with_stubs')}}
Steve G. Bjorg - Chief Architect
Did you check the MindTouch FAQ?
Found a bug? Report it.
Follow me on Twitter
Find us on IRC: irc.freenode.net #mindtouch
I guess we could add a 'Stub' template and a 'List All Stubs' template to make it easier. Would that help?
Steve G. Bjorg - Chief Architect
Did you check the MindTouch FAQ?
Found a bug? Report it.
Follow me on Twitter
Find us on IRC: irc.freenode.net #mindtouch
Thanks for the quick reply Steve. Do you ever sleep?
I'm probably being picky about the stub thing but like I said I think it's those little things that make wiki adoption really pick up.
Again thank you
To sum things up, your last dekiscript worked flawlessly except that I wanted to point a little detail. the search query needs to be enclosed in double quotes because Lucene is a bit too strong and if your "magic word" contains a part of a word that's in another page it'll come up with false positives.
so the final script is
{{wiki.search('content:"magic" -path:"Template:*" -path:All_pages_with_stubs')}}
In my case my magic word was IAWIKIPRECISION and without the doublequotes, it would list all the pages with the word "precision" in them. I guess I could have picked a more "magical" word like "%%&w1k1Pr3c1s10n&%%" but the bottom line is that using the quotes works
Thanks again.
I posted two templates for others to copy/paste:
http://wiki.opengarden.org/Template:Stub
http://wiki.opengarden.org/Template:Find_Stub_Pages
Enjoy!
Steve G. Bjorg - Chief Architect
Did you check the MindTouch FAQ?
Found a bug? Report it.
Follow me on Twitter
Find us on IRC: irc.freenode.net #mindtouch