Changeset 82386 in spip-zone


Ignore:
Timestamp:
May 15, 2014, 12:36:39 PM (5 years ago)
Author:
fil@…
Message:

trier par date/pertinence

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/indexer/trunk/prive/squelettes/contenu/sphinx.html

    r82381 r82386  
    1515?>
    1616
    17 [(#SET{sql,"SELECT WEIGHT() AS score, *, SNIPPET(content,"[(#ENV*{recherche}|_q|concat{","})]'limit=200') as snippet FROM [(#ENV{source,spip})] WHERE MATCH([(#ENV*{recherche}|_q)]) LIMIT 10})]
     17<aside class="tri">
     18
     19        [(#ENV{order}|match{date}|?{
     20                [(#SET{order,date DESC})]
     21                résultats triés par date
     22        })]
     23
     24        <div>
     25        [(#GET{order}|?{
     26                <a href="[(#SELF|parametre_url{order,''})]">trier par pertinence</a>
     27        ,
     28                <a href="[(#SELF|parametre_url{order,date})]">trier par date</a>
     29        })]
     30        </div>
     31</aside>
     32
     33
     34
     35[(#SET{sql,"SELECT WEIGHT() AS score, *, SNIPPET(content,"[(#ENV*{recherche}|_q|concat{","})]'limit=200') as snippet FROM [(#ENV{source,spip})] WHERE MATCH([(#ENV*{recherche}|_q)])[ ORDER BY (#GET{order})] LIMIT 10})]
     36
     37
    1838
    1939<pre>[(#GET{sql}|htmlspecialchars)]</pre>
     
    5070</BOUCLE_recherche>
    5171
    52 
    53 
Note: See TracChangeset for help on using the changeset viewer.