Ektron CMS400.NET API Documentation
|
Copy or move a group of taxonomy categories from one taxonomy to another. For example, you want move categories one, two and three from taxonomy A to taxonomy B. Copying or moving a taxonomy category depends on whether the DeleteSource parameter is set True or False. If DeleteSouce is set to True, the taxonomy category is deleted. You can specify how many node levels are included by setting the Depth parameter. You can also choose whether to move/copy items in the category or just clone the category's structure.
public Long CloneTaxonomy(Long sourceId, Long destinationId, int LanguageId, int Depth, Boolean WithItems, Boolean DeleteSource);
Public Function CloneTaxonomy(ByVal sourceId As Long, ByVal destinationId As Long, ByVal LanguageId As Integer, ByVal Depth As Integer, ByVal WithItems As Boolean, ByVal DeleteSource As Boolean) As Long
Parameters |
Description |
sourceId |
The ID of the source category being moved or copied. |
destinationId |
The target ID where the category will be moved or copied. |
LanguageId |
The category's language ID. |
Depth |
Specify an integer that represents the amount of category sub levels to be copied or moved. For example, if you want to copy two category levels below the source category, enter 2. To copy or move all sub categories enter -1. |
WithItems |
Enter True to copy or move all items from the source structure. If you enter false, copy/move only the taxonomy category's structure. |
DeleteSource |
Enter True to move the source category. This deletes the source category after the node is cloned. Set to false to copy the source category. This leaves the original category in its structure. |
int
Copyright (c) 2008. All rights reserved.
|
What do you think about this topic? Send feedback!
|