exalead:examples
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| exalead:examples [2022/01/14 08:57] – nicoanto | exalead:examples [2022/11/03 07:35] (Version actuelle) – nicoanto | ||
|---|---|---|---|
| Ligne 27: | Ligne 27: | ||
| ${else} | ${else} | ||
| ${entry.metas[' | ${entry.metas[' | ||
| + | </ | ||
| + | |||
| + | ==== Conditional display ==== | ||
| + | |||
| + | Test if value from meta list contains a specific value | ||
| + | < | ||
| + | ${var: | ||
| + | ${foreach facetclass in feeds[' | ||
| + | ${if (str: | ||
| + | ${var: | ||
| + | ${/if} | ||
| + | ${/foreach} | ||
| + | ${var: | ||
| </ | </ | ||
| Ligne 52: | Ligne 65: | ||
| | | ||
| ${if loop.index != 0} OR ${/if} | ${if loop.index != 0} OR ${/if} | ||
| - | hpc_system_syetem_name:" | + | hpc_system_syetem_name:" |
| | | ||
| ${else} | ${else} | ||
| ${if loop.index != 0} OR ${/if} | ${if loop.index != 0} OR ${/if} | ||
| - | | + | |
| ${/if} | ${/if} | ||
| | | ||
| Ligne 66: | Ligne 79: | ||
| [[https:// | [[https:// | ||
| + | ==== Split String into list ==== | ||
| + | var array = new(" | ||
| + | array = meta.marketing_text.split(" | ||
| + | return array | ||
| ==== Count of items in a list meta ==== | ==== Count of items in a list meta ==== | ||
| Ligne 85: | Ligne 102: | ||
| } | } | ||
| return array</ | return array</ | ||
| + | |||
| + | ==== Replace string in list ==== | ||
| + | < | ||
| + | var array = new(" | ||
| + | for(v : meta.history$l) { | ||
| + | array.add(v.replaceAll(" | ||
| + | } | ||
| + | return array | ||
| + | </ | ||
exalead/examples.1642150670.txt.gz · Dernière modification : (modification externe)
