Skip to content

Commit

Permalink
Item12753: Implement URLPARAM for search topic=
Browse files Browse the repository at this point in the history
Can't use topic since the  topic urlparam is accepted by all scripts as
an override to the Web/Topic extracted from the url path.

Added url parameter "searchtopic" to provide a URL parameter to access
the %SEARCH topic= option.
  • Loading branch information
gac410 committed Dec 30, 2014
1 parent 0542c1c commit d9b094e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/data/System/WebSearch.txt
@@ -1,4 +1,4 @@
%META:TOPICINFO{author="ProjectContributor" date="1394718139" format="1.1" version="1"}%
%META:TOPICINFO{author="ProjectContributor" date="1419905144" format="1.1" version="1"}%
%META:TOPICPARENT{name="WebHome"}%
%IF{
"$'URLPARAM{tab}'='search' OR $'URLPARAM{tab}'='' AND NOT $TAB='advanced'"
Expand Down Expand Up @@ -245,6 +245,7 @@ $percentINCLUDE{$quot%SYSTEMWEB%.%TOPIC%$quot section=$quotsearchfeed$quot}$perc
"{EnableHierarchicalWebs}"
then="recurse=\"%URLPARAM{"recurse" encode="quote"}%\""
}%
topic="%URLPARAM{"searchtopic" encode="quote"}%"
excludetopic="%URLPARAM{"excludetopic" encode="quote"}%"
nosearch="%URLPARAM{"nosearch" encode="quote"}%"
casesensitive="%URLPARAM{"casesensitive" encode="quote"}%"
Expand Down

0 comments on commit d9b094e

Please sign in to comment.