3 Jun
2008
3 Jun
'08
1:06 p.m.
Gabriela Radu wrote:
hello. is it possible to set content into a page , with code that comes from different templates? for example: treeheader, treepanelleft, treepanelright
$mydoc.setContent('#template("treeheader.vm")') $mydoc.setContent('#template("treepanelleft.vm")')
this does not work. it takes only my last template. i know i can just put the all templates in one template and then include that template. but i don;t want to do that and i want to include all the templates one by one. do you know a way to do this? thx
setContent is a setter, not an adder. Try: $mydoc.setContent("${mydoc.getContent()}#template('treepanelleft.vm')") -- Sergiu Dumitriu http://purl.org/net/sergiu/