Changeset 13527


Ignore:
Timestamp:
2006-12-20T11:30:10+13:00 (16 years ago)
Author:
mdewsnip
Message:

Now looks at the "cl" argument to avoid showing the "next search result"/"previous search result" links if you've browsed instead of searched.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/macros/document.dm

    r13452 r13527  
    3232#######################################################################
    3333
    34 _nextsearchresult_ {_If_("_cgiargsrn_" ne "0" ,<div class="nextresult"><a href="_httpquery_&amp;ifl=1&amp;ifln=_cgiargsrn_">_textnextsearchresult_</a></div>,)}
    35 
    36 _prevsearchresult_ {_If_("_cgiargsrp_"  ne "0" ,<div class="prevresult"><a href="_httpquery_&amp;ifl=1&amp;ifln=_cgiargsrp_">_textprevsearchresult_</a></div>,) }
     34_nextsearchresult_ {_If_("_cgiargsrn_" ne "0",<div class="nextresult"><a href="_httpquery_&amp;ifl=1&amp;ifln=_cgiargsrn_">_textnextsearchresult_</a></div>)}
     35
     36_prevsearchresult_ {_If_("_cgiargsrp_" ne "0",<div class="prevresult"><a href="_httpquery_&amp;ifl=1&amp;ifln=_cgiargsrp_">_textprevsearchresult_</a></div>)}
    3737
    3838_content_ {
     
    4747
    4848<div class="searchresults">
    49 _prevsearchresult_
    50 _nextsearchresult_
     49_If_("_cgiargcl_" eq "",_prevsearchresult_)_If_("_cgiargcl_" eq "search",_prevsearchresult_)
     50_If_("_cgiargcl_" eq "",_nextsearchresult_)_If_("_cgiargcl_" eq "search",_nextsearchresult_)
    5151</div>
    5252
Note: See TracChangeset for help on using the changeset viewer.