+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 11 to 15 of 15

Thread: dekiscript question

  1. #11
    Join Date
    Jul 2006
    Location
    San Diego, CA
    Posts
    5,450

    Default

    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

  2. #12
    Join Date
    Jul 2006
    Location
    San Diego, CA
    Posts
    5,450

    Default

    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

  3. #13

    Smile You're the man Steve

    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

  4. #14

    Default Final note

    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.

  5. #15
    Join Date
    Jul 2006
    Location
    San Diego, CA
    Posts
    5,450

    Default

    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

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts