Tags:
create new tag
view all tags

SID-01313: Direct search results to another topic

Status: Answered Answered TWiki version: 5.0.1 Perl version:
Category: CategorySearch Server OS: Suse SLES 11 Last update: 14 years ago

I am trying to create a search forms where the results are displayed in another topic.

The code below contains a form which imbeds the search results in the current topic and this works fine.

However I have created a blank topic called TsdAll and I need the search results to be displayed there instead of the current topic.

 <form action="%SCRIPTURLPATH{"view"}%/%WEB%/%TOPIC%">
 <input type="hidden" name="q" size="32" value="FAQ" /> 
<input type="submit" class="twikiSubmit" value="Display all faqs in --> Here" /> 
</form> 
%SEARCH{ search="%URLPARAM{"q" encode="quote"}%" type="keyword" limit="2" scope="topic" nosearch="on" reverse="on" nototal="on" excludetopic="Web*, *Template, *All" header="| *Topic: * | *Summary: * | " format="| $topic | $summary |"}% 

-- RonMascarenhas - 2011-10-31

Discussion and Answer

Assuming the other topic is in the same web use this form action: action="%SCRIPTURLPATH{"view"}%/%WEB%/TsdAll".

Your TsdAll topic needs to have the SEARCH with the search="%URLPARAM{"q" encode="quote"}%" parameter. It can optionally have the form too.

-- PeterThoeny - 2011-10-31

Thanks that worked

-- RonMascarenhas - 2011-10-31

      Change status to:
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.
SupportForm
Status Answered
Title Direct search results to another topic
SupportCategory CategorySearch
TWiki version 5.0.1
Server OS Suse SLES 11
Web server Apache 2
Perl version

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2011-10-31 - RonMascarenhas
 
  • 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.