Hi,
In the documentation, you write :
Nested Bindings
You can nest one @ binding inside another. For example, an @EVAL binding can be placed inside chunk while you can use the @CHUNK binding to retrieve the chunk containing @EVAL.
How do that ?
My case : in my sidebar I want to show a specific chunck of my actual document.
Id="5" Alias="page5" Chunck name="page5"
When I create the default value :
I need to define the alias name of my active document : $chunk_name = $modx->documentObject[’alias’]
Pass this value to the chunk binding : @CHUNK $chunk_name
or more simple : @CHUNK [*alias*] no
Thank’s
Aour
I find by myself : @EVAL return ’@CHUNK ’.$modx->documentObject[’alias’];