Description
Create server-side a new edition and copy the content from an input pre-existent edition (GET).
Available since 1.6.
Parameters (* denotes an optional parameter)
ID
Id of the source edition (REQUIRED)
Pars
A string array of parameter for edition copy (REQUIRED)
It is composed by five elements:
- Edition name (REQUIRED);
- Edition date (if empty, the copied edition will have the "now" date)
- EditionNumber Id; (REQUIRED)
- Workstate Id;
- Edition Description;
ArtCopPars*
String array of parameter for articles copy (if empty or null, articles are not copied with edition, so the copied edition will have no articles in page)
It is composed by nine elements, If the list is empty or null, no articles was copied from editions.
- Prefix name;
- Suffix name;
- "If start" (refers to the name of the source article)
- "If start replace" (refers to the name of the copied article)
- "If contains" (refers to the name of the source article)
- "If contains replace" (refers to the name of the copied article)
- "if ends" (refers to the name of the source article)
- "if ends replace" (refers to the name of the copied article)
- Folder id (where to save the copied article. If empty, the copied article will be saved in the same folder of the source article)
The first eight parameters are optional and can be combined.
Example:
ArtCopPars is: "prefix_","","","","original","copied","","","3210"
An article in the source edition is "34originalArt21"
The copied article will be named as "prefix_34copiedArt21" and will be saved in the folder with id 3210
These 9 parameters works like the Articles copy dialog on client version:
Examples
http://user-pc/GN4/int/edo.ashx?cmd=CreateFromEd&id=5107&Pars=Test2,,1701,,copy1&ArtCopPars=copy_,,,,,,,,8193
The above command copies the edition with id=5107 into edition with name Test2, with date "now", with edition number that corresponds to the id=1701,m without setting the edition workstate, but specifying the edition description as "copy1". Copies of articles will have the prefix of the name as "copy", and will be stored in the folder with id=8193.
http://user-pc/GN4/int/edo.ashx?cmd=CreateFromEd&id=5107&Pars=Test2,,1701,,copy1&ArtCopPars=
The above command copies the edition with id=5107 into edition with name Test2, with date "now", with edition number that corresponds to the id=1701,m without setting the edition workstate, but specifying the edition description as "copy1". Articles will not be copied.