1 | [(#REM) |
---|
2 | |
---|
3 | Surcharge de mots/prive/objets/liste/mots_associer.html |
---|
4 | |
---|
5 | Modfie le squelette comme suit : |
---|
6 | - ne liste que les groupes racine |
---|
7 | - compte les mots de toute la branche (et non juste du groupe) |
---|
8 | {branche_groupe} à la place de {id_groupe} |
---|
9 | |
---|
10 | ]#SET{groupes_vus,'0'} |
---|
11 | [(#SET{_MAX_MOTS_LISTE,[(#VAL{_MAX_MOTS_LISTE}|defined|?{[(#VAL{_MAX_MOTS_LISTE}|constant)],50})]})] |
---|
12 | #SET{exclus,#ENV{objet_source}|lister_objets_lies{#ENV{objet},#ENV{id_objet},#ENV{_objet_lien}}} |
---|
13 | <BOUCLE_exclus(MOTS){id_mot IN #GET{exclus}}{tout}>[(#ID_GROUPE|unique|oui)#SET{groupes_vus,#GET{groupes_vus}|concat{',',#ID_GROUPE}} ]</BOUCLE_exclus> |
---|
14 | |
---|
15 | <B_groupes> |
---|
16 | <ul> |
---|
17 | <BOUCLE_groupes(GROUPES_MOTS){racine}{tables_liees==#ENV{objet}|table_objet}{par titre} |
---|
18 | ><BOUCLE_compte(MOTS){branche_groupe}{id_mot !IN #GET{exclus}} />#SET{total,#TOTAL_BOUCLE}<//B_compte>[ |
---|
19 | (#GET{total}|!={0}|et{#AUTORISER{afficherselecteurmots,groupemots,#ID_GROUPE,'',#ARRAY{objet,#ENV{objet},id_objet,#ENV{id_objet}}}}) |
---|
20 | <li class="editer associer_mot groupe_mots[(#UNSEUL|=={oui}|oui)unseul][(#OBLIGATOIRE|=={oui}|oui)obligatoire][ (#ID_GROUPE|in_any{#GET{groupes_vus}|explode{','}}|?{'vu','nonvu'})]"> |
---|
21 | <label for="ajouter_lien-groupe#ID_GROUPE">#TITRE</label> |
---|
22 | |
---|
23 | [(#GET{total}|<{#GET{_MAX_MOTS_LISTE}}|oui) |
---|
24 | [(#UNSEUL|=={oui}|oui) |
---|
25 | [(#INCLURE{fond=prive/objets/liste/mots_associer-select-unseul,env,exclus=#GET{exclus},id_groupe=#ID_GROUPE})] |
---|
26 | ] |
---|
27 | [(#UNSEUL|=={oui}|non) |
---|
28 | [(#INCLURE{fond=prive/objets/liste/mots_associer-select,env,exclus=#GET{exclus},id_groupe=#ID_GROUPE})] |
---|
29 | ] |
---|
30 | ] |
---|
31 | [(#GET{total}|<{#GET{_MAX_MOTS_LISTE}}|non) |
---|
32 | [(#INCLURE{fond=prive/objets/liste/mots_associer-recherche,env,exclus=#GET{exclus},id_groupe=#ID_GROUPE,unseul=#UNSEUL})] |
---|
33 | ] |
---|
34 | </li> |
---|
35 | ]</BOUCLE_groupes> |
---|
36 | </ul> |
---|
37 | </B_groupes> |
---|