|
|
Ligne 1 : |
Ligne 1 : |
− | [[Image:Logo_spip_thelia.png]]
| |
− | [http://www.spip-contrib.net/Plugin-Thelia le plugin thelia-spip]
| |
| | | |
− | '''Attention ces boucles nécessitent l'installation du plugin spip-thelia'''
| |
− | == Param entrée ==
| |
− |
| |
− | '''id''' : id du contenu
| |
− |
| |
− | '''rubrique''' : rubrique à analyser
| |
− |
| |
− | '''produit''' : produit à analyser
| |
− |
| |
− | '''courante''' : déclinaison courante (0 ou 1)
| |
− |
| |
− | '''exclusion''' : id des déclianaisons à exclure (ex : exclusion="1,3,5" )
| |
− |
| |
− | == Param sortie ==
| |
− |
| |
− | '''THELIA-ID''' : id de la déclinaison
| |
− |
| |
− | '''THELIA-TITRE''' : titre de la déclinaison
| |
− |
| |
− | '''THELIA-CHAPO''' : chapo de la déclinaison
| |
− |
| |
− | '''THELIA-DESCRIPTION''' : description de la déclinaison
| |
− |
| |
− | '''THELIA-PRODUIT''' : id du produit associé
| |
− |
| |
− | =='''Substitutions declinaison'''==
| |
− |
| |
− | '''THELIA-DECLINAISON_ID''' : retourne l'id de la déclinaison en cours
| |
− |
| |
− | '''THELIA-DECLINAISON_DISP''' : retourne l'id de la déclidisp en cours
| |
− |
| |
− | '''THELIA-DECLINAISON_STOCKMINI''' : retourne le stock minimum de la déclidisp en cours
| |
− |
| |
− | =='''declinaison'''==
| |
− |
| |
− | <pre>
| |
− | <THELIA_declinaisons type="DECLINAISON" rubrique="THELIA-RUBRIQUE" produit="THELIA-ID">
| |
− | <T_decldisp1>
| |
− | <THELIA_decldisp1 type="DECLIDISP" declinaison="THELIA-ID" produit="THELIA-PRODUIT">
| |
− | </THELIA_decldisp1>
| |
− | THELIA-TITRE :
| |
− | <select name="declinaisonTHELIA-ID">
| |
− | </T_decldisp1>
| |
− | <//T_decldisp1>
| |
− | <THELIA_decldisp type="DECLIDISP" declinaison="THELIA-ID" produit="THELIA-PRODUIT">
| |
− | <option value="THELIA-ID">THELIA-TITRE</option>
| |
− | </THELIA_decldisp>
| |
− | <T_decldisp2>
| |
− | <THELIA_decldisp2 type="DECLIDISP" declinaison="THELIA-ID" produit="THELIA-PRODUIT">
| |
− | </THELIA_decldisp2>
| |
− | </select>
| |
− | </T_decldisp2>
| |
− | <//T_decldisp2>
| |
− | </THELIA_declinaisons>
| |
− | </pre>
| |
− |
| |
− |
| |
− | Par exemple, pour un produit 'chemise', on pourra afficher les déclinaisons de couleur et de taille
| |
− |
| |
− | * [[Les boucles spip et thelia]]
| |
− | * [[La boucle DECLINAISON]]
| |
− |
| |
− | --[[Utilisateur:Alainormandie|alainormandie]] 19 septembre 2008 à 14:12 (CEST)
| |