maj de la doc
This commit is contained in:
parent
6f320f6ccf
commit
d57b3d5e7c
2 changed files with 15 additions and 1 deletions
11
README.md
11
README.md
|
@ -84,6 +84,17 @@ Choisir entre la version minifiée de vuejs (sans le debug) ou la version de dev
|
|||
"nom" : "desc"
|
||||
}
|
||||
```
|
||||
- recharger qu'une partie du json via le timestamp (maj), il faut ajouter le critere : `{maj > #ENV{maj,0}}` et la clé dans le header :
|
||||
```json
|
||||
"maj": [(#CONFIG{derniere_modif_osdve_intervention}|tsToDate|json_encode)]
|
||||
```
|
||||
|
||||
- On peut ajouter des elements que l'on veut supprimer si on utilise le {maj}
|
||||
```json
|
||||
"a_supprimer" : [ <BOUCLE_articlesAsup(ARTICLES){si #ENV{maj}}{staut = poubelle}{','}{maj > #ENV{maj}}> #ID_ARTICLE </BOUCLE_articlesAsup> ]
|
||||
```
|
||||
|
||||
|
||||
|
||||
## Utiliser les actions :
|
||||
```html
|
||||
|
|
|
@ -31,8 +31,11 @@
|
|||
]
|
||||
"realise": [(#URL_PAGE{toto}|json_encode)]
|
||||
},
|
||||
|
||||
"a_supprimer" : [ <BOUCLE_articlesAsup(ARTICLES){si #ENV{maj}}{staut = poubelle}{','}{maj > #ENV{maj}}> #ID_ARTICLE </BOUCLE_articlesAsup> ]
|
||||
|
||||
},
|
||||
<BOUCLE_articles(ARTICLES){id_article?}{tout}{','}>
|
||||
<BOUCLE_articles(ARTICLES){id_article?}{staut != poubelle}{','}{maj > #ENV{maj,0}}>
|
||||
[(#SET{statut,
|
||||
#SET{args,#ID_ARTICLE|concat{-}|concat{#STATUT}}
|
||||
<a class="url_action" data-id="#ID_ARTICLE" href="[(#URL_ACTION_AUTEUR{changer_statut_article,#GET{args}})]">
|
||||
|
|
Loading…
Add table
Reference in a new issue