Scripts in Styler
In the Editor manual ist says you can access scripts out of the Styler using Xpath with one of the following expressions:
- _js:eval()
- _acl_eval()
It also supports an example for starting a Jscript ( _js:eval("new Date().getFullYear()")), which works out just fine.
My problem now is, that I just can´t figure out how to call a function, which needs to be deliverd a parameter.
Anyone?
To substantiate my problem:
I don´t know how to deliver a parameter that is taken out of the document, which ist to be styled. For example I want to deliver an attribute out of the root element to the function and return a different string depending on the actual attribute.
Nachricht geändert durch Daniel Thursfield

