Tags:
create new tag
, view all tags

Question

I can't seem to make verbatim tags work properly. Specifically search strings create strange results.

I'm creating a group of topics on my twiki web site which I call "TwikiTweaks" that are quick tips and tricks for using twiki. I expect to use the verbatim tags quite a bit in these so I can include little snippits of code that someone can quickly copy without going into edit mode. However, in the first one I attempted this with, the verbatim tags didn't work as I expected (see example below). In particular, the search strings seem to produce wierd results.

I've looked at the guidelines for using verbatim as well as examples of pages that use it and I can't figure out what I'm doing wrong. Or is it that I'm simply running into a limitation of the verbatim formatting? Can someone point out what I'm doing wrong and/or suggest additional formatting to achieve the effect I'm after?

Thanks so much!

P.S. See explanation of partial solution I figured out on my own under #Answer below.

Here's the text of the page I am creating:

Here's how you can create your own personal directory of topics you've contributed to recently. Copy the text below between the two bars and paste it into your personal page (TWikiGuest). You can add other webs to search by editing the string {web ="webname"} in the search parameters.


__Here's a list of topics I've been involved in recently:__

---++++ Main
%SEARCH{ "%TOPIC%" web="Main" scope="text" nosearch="on" nosummary="on" noheader="on" nototal="on" regex="off" order="modified" reverse="on" limit="20"}%
---++++ Dev
%SEARCH{ "%TOPIC%" web="Dev" scope="text" nosearch="on" nosummary="on" noheader="on" nototal="on" regex="off" order="modified" reverse="on" limit="20"}%
---++++ Know
%SEARCH{ "%TOPIC%" web="Know" scope="text" nosearch="on" nosummary="on" noheader="on" nototal="on" regex="off" order="modified" reverse="on" limit="10"}%


  • TWiki version: Dec 01
  • Web server:
  • Server OS:
  • Web browser:
  • Client OS:

-- LynnwoodBrown - 09 Apr 2002

Answer

Well, with a little more digging I came up with a working solution for this myself. It occurred to me that Peter would have had to deal with displaying search strings in FormattedSearch examples so I looked there. This is where I got the use of the nop tag. Interestingly enough, there's no mention in TextFormattingRules of this use of nop tags to display search strings.

You'll notice in the example above that I had to continually turn on and off the verbatim tag in order to get the nop tags to work on the search strings. Perhaps someone could suggest a more eloquent solution.


Since Lynwood answered his question himself, I can add only:

  • your "TwikiTweaks" has wrong capitalization: s/b TWikiTweaks. TWiki is a WikiClone from original Wiki.
  • can you please add your search to TWikiAdminCookBook? Or I should add it?
  • since you changed status to "Answered", chances are that experts will not look into this with more elegant solution. wink

-- PeterMasiar - 10 Apr 2002


Thanks for feedback Peter. I think I will re-classify this as "un-answered" for a couple of days to see if I can get further suggestions. Then I'll be glad to add this to TWikiAdminCookBook. I totally support that concept and having a "toolkit" of pre-defined searches would be a great benefit to new users. I seem to recall MikeMannix making a similar suggestion. At some point, I'd like to exand on the idea I put out in FormsArchive to create a repository of useful searches, page templates, forms, and combinations of these which effectively create simple TWikiApps.

As for my spelling of TwikiTweaks, I guess I was under the impression that a WikiWord had to start with one upper-case letter followed by one or more lowercase letters. Don't know where I got that but upon review of guidelines, I see I'm clearly wrong. So - guess I'll change it out. Anyway, I thought that is was a name for tips and tricks that just begged to be used.

-- LynnwoodBrown - 10 Apr 2002

About WikiWord : i.e. ABCdefG is valid. Does'n have to be one upper-case: any mixed-case should be OK. For some reason underscore will break it: ABC_defG is not valid. (Now I am OT). And I liked the name of your page. smile

-- PeterMasiar - 11 Apr 2002

Topic revision: r5 - 2002-05-21 - TWikiAdmin
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.