New HTML data clone feature is very useful to automatically duplicate any HTML tags.
Specific attributes can be used :
- data-clone : number of clone to create, no default
- data-clonestart : number of first element, 1 by default – use it to generate a dynamic id –
- data-clonestep : step number, 1 by default
- data-cloneself : true by default. Cloning operation includes the tag itself, otherwise only the children will be cloned
The special sequence %% will be replaced anywhere in the cloned section by its iteration number, beginning from data-clonestart with a step of data-clonestep.
That job is done by new CYClone() function automatically called by CYLoadPage().