Commit 68e8e8b4 authored by Alexis Piéplu's avatar Alexis Piéplu
Browse files

Add date webcontent var

parent cadffbf2
......@@ -87,15 +87,11 @@ $id_element.id_sous_element.data
```html
#foreach ($element in $elements.getSiblings())
<span>$element.getData()</span>
#foreach ( $sub_element in $element.sub_elements.getSiblings() )
<span>$sub_element.getData()</span>
#end
#end
```
......@@ -103,7 +99,7 @@ $id_element.id_sous_element.data
## Récupérer et formater une date
```html
#set ( $date = "Thu, 24 Mar 2016 20:30:00 +0000" )
#set ( $date = "Thu, 24 Mar 2016 20:30:00 +0000" ) <!-- $reserved-article-modified-date.data -->
#set ( $dateObject = $dateTool.toDate("EEE, dd MMM yyyy hh:mm:ss Z", $date, $locale))
#set ( $date = $dateTool.format("MMMM yyyy", $dateObject, $locale))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment