Difference: NatSkinWebSearchViewTemplate (r2 vs. r1)

r2 - 19 Nov 2013 - 11:39 - AdminUser r1 - 19 Nov 2013 - 11:39 - UnknownUser

%{

%{

}%
%{ ###########################################################################
   inherit settings from standard view template
}%
%TMPL:INCLUDE{"view"}%
%{
}%
%{ ###########################################################################
   inherit settings from standard view template
}%
%TMPL:INCLUDE{"view"}%
%{

}%

}%

%{

%{

}%
%{ ###########################################################################
   websearch - default settings and switches
}%
%TMPL:DEF{"searchbox"}%%TMPL:END%
%TMPL:DEF{"sidebar"}%%TMPL:END%
%TMPL:DEF{"bodyclass"}%natViewBody natSearchBody%TMPL:END%
%TMPL:DEF{"revinfo"}%%TMPL:END%
%TMPL:DEF{"topicactions"}%%TMPL:END%
%TMPL:DEF{"meta"}%  %TMPL:END%
%{
}%
%{ ###########################################################################
   websearch - default settings and switches
}%
%TMPL:DEF{"searchbox"}%%TMPL:END%
%TMPL:DEF{"sidebar"}%%TMPL:END%
%TMPL:DEF{"bodyclass"}%natViewBody natSearchBody%TMPL:END%
%TMPL:DEF{"revinfo"}%%TMPL:END%
%TMPL:DEF{"topicactions"}%%TMPL:END%
%TMPL:DEF{"meta"}%  %TMPL:END%
%{

}%

}%

%{

%{

}%
%{ ###########################################################################
   content: main definition that puts together all pieces
}%
%TMPL:DEF{"content"}%
%TMPL:P{"websearch::form"}% %TMPL:P{"websearch::hits"}% %JQREQUIRE{"focus"}%
%TMPL:END% %{
}%
%{ ###########################################################################
   content: main definition that puts together all pieces
}%
%TMPL:DEF{"content"}%
%TMPL:P{"websearch::form"}% %TMPL:P{"websearch::hits"}% %JQREQUIRE{"focus"}%
%TMPL:END% %{

}%

}%

%{

%{

}%
%{ ###########################################################################
   websearch::form: this is the form to be submitted; it consists of several 
   steps that make up the rows of the form; all form steps are wraped into
   a start and end part
}%

%TMPL:DEF{"websearch::form"}%
%TMPL:P{"websearch::form::start"}%
%TMPL:P{"websearch::form::rssstep"}%
%TMPL:P{"websearch::form::inputstep"}%
%TMPL:P{"websearch::form::end"}%
%TMPL:P{"websearch::form::limit"}%
%TMPL:END%
%{
}%
%{ ###########################################################################
   websearch::form: this is the form to be submitted; it consists of several 
   steps that make up the rows of the form; all form steps are wraped into
   a start and end part
}%

%TMPL:DEF{"websearch::form"}%
%TMPL:P{"websearch::form::start"}%
%TMPL:P{"websearch::form::rssstep"}%
%TMPL:P{"websearch::form::inputstep"}%
%TMPL:P{"websearch::form::end"}%
%TMPL:P{"websearch::form::limit"}%
%TMPL:END%
%{

}%

}%

%{

%{

}%
%{ ###########################################################################
   websearch::form::start - this is the head of the form
}%
%TMPL:DEF{"websearch::form::start"}%
%TMPL:END% %{
}%
%{ ###########################################################################
   websearch::form::start - this is the head of the form
}%
%TMPL:DEF{"websearch::form::start"}%

%TMPL:END% %{

}%

}%

%{

%{

}%
%{ ###########################################################################
   websearch::form::rss - this one holds the rss link
}%
%TMPL:DEF{"websearch::form::rssstep"}%

%TMPL:END%
%{
}%
%{ ###########################################################################
   websearch::form::rss - this one holds the rss link
}%
%TMPL:DEF{"websearch::form::rssstep"}%

%TMPL:END%
%{

}%

}%

%{

%{

}%
%{ ###########################################################################
   websearch::form::inputstep - this one holds the input field together with the submit/cancel buttons
}%
%TMPL:DEF{"websearch::form::inputstep"}%
%BUTTON{"%MAKETEXT{"Search"}%" type="submit" title="%MAKETEXT{"submit the query"}%" icon="find"}% %CLEAR% %TMPL:P{"websearch::form::options"}%
%TMPL:END% %{
}%
%{ ###########################################################################
   websearch::form::inputstep - this one holds the input field together with the submit/cancel buttons
}%
%TMPL:DEF{"websearch::form::inputstep"}%
%BUTTON{"%MAKETEXT{"Search"}%" type="submit" title="%MAKETEXT{"submit the query"}%" icon="find"}% %CLEAR% %TMPL:P{"websearch::form::options"}%
%TMPL:END% %{

}%

}%

%{

%{

}%
%TMPL:DEF{"websearch::form::limit"}%
%MAKETEXT{"Topics per web"}%:
%TMPL:END% %{
}%
%TMPL:DEF{"websearch::form::limit"}%
%MAKETEXT{"Topics per web"}%:
%TMPL:END% %{

}%

}%

%{

%{

}%
%{ ###########################################################################
   websearch::form::options - this one renders the row of search options
}%
%TMPL:DEF{"websearch::form::options"}%


%TMPL:END%
%{
}%
%{ ###########################################################################
   websearch::form::options - this one renders the row of search options
}%
%TMPL:DEF{"websearch::form::options"}%


%TMPL:END%
%{

}%

}%

%{

%{

}%
%{ ###########################################################################
   websearch::form::end - finally close the form
}%
%TMPL:DEF{"websearch::form::end"}%%TMPL:END%
%{
}%
%{ ###########################################################################
   websearch::form::end - finally close the form
}%
%TMPL:DEF{"websearch::form::end"}%%TMPL:END%
%{

}%

}%

%{

%{

}%
%{ ###########################################################################
   websearch::hits - this block displays the list of hits as found by SEARCH
}%
%TMPL:DEF{"websearch::hits"}%
%SEARCH{
  "%URLPARAM{"search" encode="quote"}%"
  nosearch="on"
  type="%URLPARAM{"type" default="keyword"}%"
  scope="%URLPARAM{"scope" default="all" encode="quote"}%"
  web="%URLPARAM{"web" encode="quote"}%"
  excludetopic="%URLPARAM{"excludetopic" encode="quote"}%"
  casesensitive="%URLPARAM{"casesensitive" default="off" encode="quote"}%"
  nosummary="%URLPARAM{"nosummary" encode="quote"}%"
  nototal="on"
  order="%URLPARAM{"order" encode="quote"}%"
  reverse="%URLPARAM{"reverse" encode="quote"}%"
  limit="%URLPARAM{"limit" encode="quote"}%"
  zeroresults="%IF{ "defined search and $search!=''" then="on" else="off" }%"
  header="%IF{"'%URLPARAM{"web"}%'='all'" 
    then="$percntTMPL:P{\"websearch::hits::header\" 
      web=\"$web\"
      count=\"$ntopics\"
    }$percnt"
    else="

$percntTMPL:P{\"websearch::hits::footer\" count=\"$ntopics\"}$percnt

" }%" footer="$percntTMPL:P{\"websearch::hits::footer\" count=\"$ntopics\"}$percnt" format="$percntTMPL:P{ \"websearch::hits::topic\" topic=\"$topic\" web=\"$web\" author=\"$wikiname\" changed=\"$date\" summary=\"$summary\" }$percnt" }% %TMPL:END% %{
}%
%{ ###########################################################################
   websearch::hits - this block displays the list of hits as found by SEARCH
}%
%TMPL:DEF{"websearch::hits"}%
%SEARCH{
  "%URLPARAM{"search" encode="quote"}%"
  nosearch="on"
  type="%URLPARAM{"type" default="keyword"}%"
  scope="%URLPARAM{"scope" default="all" encode="quote"}%"
  web="%URLPARAM{"web" encode="quote"}%"
  excludetopic="%URLPARAM{"excludetopic" encode="quote"}%"
  casesensitive="%URLPARAM{"casesensitive" default="off" encode="quote"}%"
  nosummary="%URLPARAM{"nosummary" encode="quote"}%"
  nototal="on"
  order="%URLPARAM{"order" encode="quote"}%"
  reverse="%URLPARAM{"reverse" encode="quote"}%"
  limit="%URLPARAM{"limit" encode="quote"}%"
  zeroresults="%IF{ "defined search and $search!=''" then="on" else="off" }%"
  header="%IF{"'%URLPARAM{"web"}%'='all'" 
    then="$percntTMPL:P{\"websearch::hits::header\" 
      web=\"$web\"
      count=\"$ntopics\"
    }$percnt"
    else="

$percntTMPL:P{\"websearch::hits::footer\" count=\"$ntopics\"}$percnt

" }%" footer="$percntTMPL:P{\"websearch::hits::footer\" count=\"$ntopics\"}$percnt" format="$percntTMPL:P{ \"websearch::hits::topic\" topic=\"$topic\" web=\"$web\" author=\"$wikiname\" changed=\"$date\" summary=\"$summary\" }$percnt" }% %TMPL:END% %{

}%

}%

%{

%{

}%
%{ ###########################################################################
   websearch::hits::topic - this is called for each found hit
}%
%TMPL:DEF{"websearch::hits::topic"}%
[[%web%.%topic%]] in %WEBLINK{format="$web" web="%web%"}%
%summary%
%changed%, [[%USERSWEB%.%author%]]
%TMPL:END% %{
}%
%{ ###########################################################################
   websearch::hits::topic - this is called for each found hit
}%
%TMPL:DEF{"websearch::hits::topic"}%
[[%web%.%topic%]] in %WEBLINK{format="$web" web="%web%"}%
%summary%
%changed%, [[%USERSWEB%.%author%]]
%TMPL:END% %{

}%

}%

%{

%{

}%
%{ ###########################################################################
   websearch::hits::header - this prepended to the hit set of a web
}%
%TMPL:DEF{"websearch::hits::header"}%
---+++ %MAKETEXT{"Results from [_1] web" args="%web%"}%%TMPL:END%
%TMPL:END%
%{
}%
%{ ###########################################################################
   websearch::hits::header - this prepended to the hit set of a web
}%
%TMPL:DEF{"websearch::hits::header"}%
---+++ %MAKETEXT{"Results from [_1] web" args="%web%"}%%TMPL:END%
%TMPL:END%
%{

}%

}%

%{

%{

}%
%{ ###########################################################################
   websearch::hits::footer - this appended to the hit set of a web
}%
%TMPL:DEF{"websearch::hits::footer"}%
%MAKETEXT{"[_1] topic(s) found" args="%count%"}%
%TMPL:END% %{
}%
%{ ###########################################################################
   websearch::hits::footer - this appended to the hit set of a web
}%
%TMPL:DEF{"websearch::hits::footer"}%
%MAKETEXT{"[_1] topic(s) found" args="%count%"}%
%TMPL:END% %{

}%

}%

r2 - 19 Nov 2013 - 11:39 - AdminUser r1 - 19 Nov 2013 - 11:39 - UnknownUser

View topic | View difference interwoven | History: r2 < r1 | More topic actions
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback