Yes, if not used with care.
Think about this example..
You have a comparison table, based on data on DB, where you want to give a lot
of flexibility to your editors.
You have 4x10 cells to fill, each of them can be freely be mixed with editorial
content and DB content, like this:
Example in AngularJS
CELL 1-1: {{product[1].title}}
CELL 1-2: {{product[2].title}}
CELL 1-3: new! {{product[3].title}}
CELL 2-1: {{product[1].price}}
CELL 2-2: {{product[2].price}}
CELL 2-3: new offer: only {{product[3].price}}
The words "new!" and "new offer:" are editorial, completely mixed with DB
content.
This can be easily made with AngularJS. But if you want to do that in a
"traditional way" (server side, freemarker + java), eval is your friend.
A good managed eval, of course..
M.
-----Messaggio originale-----
Da: [email protected] [mailto:[email protected]]
Per conto di Nils Breunese
Inviato: giovedì 19 febbraio 2015 12:40
A: Magnolia User-List
Oggetto: Re: [magnolia-user] Static Field with dynamic values
Matteo Pelucco wrote:
> I wanted only to point out the eval function of Freemarker. That solved us in
> the past (and present) different bad situations.
Also sounds kind of dangerous...
Nils.
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe,
E-mail to: <[email protected]>
----------------------------------------------------------------
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------