You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1011 B
HTML
32 lines
1011 B
HTML
#HTTP_HEADER{Content-Type: application/json; charset=#CHARSET}
|
|
[(#REM)
|
|
|
|
Menu de selection d'une rubrique pour un article
|
|
|
|
Chercher les rubriques correspondant a la requete
|
|
]
|
|
{
|
|
"results": \[
|
|
<BOUCLE_s(RUBRIQUES){statut==.}{titre LIKE (#ENV{q})%}{0,20}{par multi titre}{","}>
|
|
#SET{label,''}
|
|
<BOUCLE_h(HIERARCHIE){statut==.}{n-3,3}>[(#SET{label,#GET{label}|concat{#TITRE|couper{12},' > '}})]</BOUCLE_h>
|
|
[(#SET{label,#GET{label}|concat{#TITRE|textebrut}})]
|
|
{
|
|
"id": [(#ID_RUBRIQUE|json_encode)],
|
|
"long_text": [(#GET{label}|json_encode)],
|
|
"text": [(#TITRE|textebrut|json_encode)]
|
|
}
|
|
</BOUCLE_s>
|
|
<BOUCLE_s1(RUBRIQUES){statut==.}{titre LIKE %(#ENV{q})%}{0,20}{par multi titre}{","}>
|
|
#SET{label,''}
|
|
<BOUCLE_h1(HIERARCHIE){statut==.}{n-3,3}>[(#SET{label,#GET{label}|concat{#TITRE|couper{12},' > '}})]</BOUCLE_h1>
|
|
[(#SET{label,#GET{label}|concat{#TITRE|textebrut}})]
|
|
{
|
|
"id": [(#ID_RUBRIQUE|json_encode)],
|
|
"long_text": [(#GET{label}|json_encode)],
|
|
"text": [(#TITRE|textebrut|json_encode)]
|
|
}</BOUCLE_s1>
|
|
<//B_s>
|
|
\]
|
|
}
|