So I've created a template which I want them to be able to reuse to add different content. The template is a simple Collapsibles/Accordion.
Everything works well for just 1 node, if I then create a new node (Matt test 2) using the accordion template it doesnt pick up the "working 2" and "working 3" it references the data from Matt test and not Matt test 2
Creating a template and reusing it.
Hello all,
So I've created a template which I want them to be able to reuse to add different content. The template is a simple Collapsibles/Accordion.
Everything works well for just 1 node, if I then create a new node (Matt test 2) using the accordion template it doesnt pick up the "working 2" and "working 3" it references the data from Matt test and not Matt test 2
Here is my tree view;
Here is my code;
Anyone able to point me in the right direction?
Thanks
Hi Matt
Can you show what is going on on the Info tab? What is the default template for this document type?
Thanks,
Alex
Your content is always grabbing the firstChild which will always be 'mattTest'.
Try changing that to:
Worked perfect, thanks Darren!
is working on a reply...