cancel
Showing results for 
Search instead for 
Did you mean: 

Adding new Associations in Freemarker

alr
Champ in-the-making
Champ in-the-making
Hello,

I am currently trying to add a new association to an element inside of a FreeMarker template. I have added my own domain model, where one TextType can have many elements of Text. So, when creating my two data types I don't have any problems. Now I tried to change the association during display (just as a test). However it seems to me that one can only read, but not write the associations inside my freemarker code. What I would like to have, would be something like


document.assocs["cns:linkedTextType"][0] = linkedTextType

This does not throw an exception, but when reading that particular Text Node again, the old association still exists instead of the one I set there, as if it does not get written into my node.

Is this possible at all with Freemarker? Thanks for any help.


–Alexander
1 REPLY 1

alexander
Champ in-the-making
Champ in-the-making
Normally one will use JavaScript for any changes in repository. Freemarker is a presentation technology, not content manipulation.

Thanks
(Another) Alexander  Smiley Happy