SID-01313: Direct search results to another topic
| Status: |
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
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.