M.Zharkikh's personal site logo
Mail to site
Print version
News (RSS)
Smereka / For editors / Cloning nodes

Smereka

For editors

Cloning nodes

To copy the current node one should click the "Copy" button on the toolbar to the left of the inspector. Then "Paste" button activated.

Now one can browse the nodes tree to the insertion point and click the "Paste" button. In the dialog one have choose the copy mode and paste position.

Method of copying presented the following capabilities: "Clone", "Paste as collector", "Paste as link".

When cloning a new node obtains all the attributes of the source node and "forgets" about its origin.

When one insert the collector a new node creates with the same class as the source node; its link attribute points to the source node, and collector acquires any own attributes. Node established in this way represents the source node like a mirror in the new position. Of course, after insertion some attributes of the collector can be modified, and they replace the attributes inherited from the source.

When one insert a transition, a new node of the Link class creates, which points to the source node. When page based on this node is compiled, actually an internal redirect to the source node occurs. Own attributes of the transition node is not used, and replacing of source node attributes is not occur.

Paste position provides an options to insert a new node "As the first node", "Before the current", "After the current", "As the last node", "As a child node".

Please be aware that hierarchical node cloning (i.e. cloning the source node and all their child nodes) in this version is not supported by Smereka. Copy operation creates only one new node.

Previous section | Table of content | Next section

Please this page? Help us to develop this site!

1978 2018 N.I.Zharkikh

Reprinting of articles from site are encouraged while
reference (hyperlink) to my site is provided

Site powered by

Load count : 1395

Modified : 8.08.2017

If you look up the type error
on this page, please select it
by mouse and press Ctrl+Enter.