Daniele Baggio 10 Years Ago Awesome script for ADT writers Please sign in to reply. Reply as... Cancel
mARK aNDREWS 9 Years Ago Not wrong, this is a very useful script.... Still not sure where I find my structure elements though! Any clues? Please sign in to reply. Reply as... Cancel
Jorge Pineda 9 Years Ago thanks for the script, awesome!!!! Please sign in to reply. Reply as... Cancel
s s 8 Years Ago Hi, this is indeed very useful! I have been able to use pieces of it but having problems with the "<#assign foo = something.in["your"].data[0].model />" concept in your note. I know for example, that a ADT for a Journal display has the container <#list entries as entry> available. But this does not seem to work for an web-content-display template and what else is available? I found from your code that 'request' is available and can parse that with freemaker. When a web-content-display template is invoked is the 'article' passed in as a container (or an article id that is supposed to be used in an #assign and then regular freemarker can kick in?)? I've seen the examples of reserved-words use but seems to be just as one-off special cases. Is there not a container for them (e.g. ${reserved.user_id}) so that the freemarker 'way' can be maintained? Please sign in to reply. Reply as... Cancel s s s s 8 Years Ago ok; found this bit of generic fm that returns the data model; <#list .data_model?keys as key> ${key}</#list>Now just have to figure out if what I need is in there somewhere. Please sign in to reply. Reply as... Cancel
s s s s 8 Years Ago ok; found this bit of generic fm that returns the data model; <#list .data_model?keys as key> ${key}</#list>Now just have to figure out if what I need is in there somewhere. Please sign in to reply. Reply as... Cancel