Tags:
create new tag
view all tags

Question

First of all thank you ClaussStrauch for answering my last question, we were able to install the skin and get it working nicely. However, I now have a new question. The "List Topics" bar in the left sidebar searches for topics with the name that one enters into the form. I would like to change it into a "Search Topics" bar instead, that does a simple topic text (body) search in all webs. I assume that this would require a change in a template, but I am not sure.

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Skin

-- DorianScrima - 25 Aug 2005

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

Yes, you'll need to change the template. The relevant file is dragonmenu.dragon.tmpl (or, if you decided to get this menu from a topic, whatever topic you're using). Look near the top and you'll see html form that does this search box .

You can probably replace this form with something like:

(view the raw text of this topic to see how the above box is implemented)

-- ClaussStrauch - 25 Aug 2005

A few more things: you can leave out the fixed size for the textbox in the example I gave. Also, you may want to tweak the CSS a bit (CSS is in pub/TWiki/DragonSkin) if you remove the "search text" line under the searchbox in order to fix possible spacing problems. Alternatively, just change the "search text" line to "Advanced search" and point it at the appropriate URL for the WebSearchAdvanced page.

-- ClaussStrauch - 25 Aug 2005

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2005-10-01 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.