[Xerte] xerte 2.n - Help needed to remove and then re-duplicateicons

Kemp Johnathan johnathan.kemp at ntlworld.com
Mon Jun 14 11:26:05 BST 2010


Hello Julian,

Many thanks for your help.

I have not had a chance to try it yet, but am optimistic that I will now be
able to get my wizard to work.

Kind regards

Johnathan

On 9 June 2010 21:34, Julian Tenney <Julian.Tenney at nottingham.ac.uk> wrote:

>  Whilst I know how to remove nodes and duplicate an existing node - that
> is to the extent you can see in my quiz example, I have no idea how you
> would programmatically go about taking a copy of a node from one location
> and duplicating it to another location.
>
> //get a copy - use your own paths to the icon
> myProto = icon.parentNode.getChildByName("protoNode").cloneNode(true);
>
> //you have the node - now put it somewhere
> icon.nextSibling.appendChild(myProto);
>
> //then dupe away
> icon.nextSibling.childNodes[0].duplicate(n);
>
> Obviously work it to fit your structure. PageTemplates used to work like
> that, before the models existed as seperate files.
>
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20100614/63dd41e7/attachment.html


More information about the Xerte mailing list