On 01/31/2014 04:57 PM, fredb wrote:
Hi,
I've one page (let's call it "Template page") made up of 2 included
files.
Code of "Template page" is something like this :
{include document="PageChap1"/}
{include document="PageChap2"/}
I'd like to copy "Template page" to a new page (in the same space) and
renaming includes at the same time
Is it possible and is there any way (existing script or extension) to do
that ?
Thanks in advance,
I have not heard of anything like existing like this.
I guess the problem is that one needs to:
a) find a way to give the copies of "PageChap1" and "PageChap2" new
names
b) then update the content of the copied template to refer to the copies, not the
original template chapters.
I am sure a custom scripted solution for this is possible, and depending on the UI
Requirements it might not even be too difficult, but as far as I know this does not
exist.
(Come to think of it, one does not even modify the original template in step b). For the
new page "MyNextBook", just call the pages MyNextBookPageChap1 and
MyNextBookPageChap2 and a template like:
{{velocity wiki="true"}}
{{include reference="${doc.name}PageChap1" /}}
{{include reference="${doc.name}PageChap2" /}}
{{/velocity}}
should "just work" ...)