Class StructureChange
- Namespace
- Dynamicweb.Content
- Assembly
- Dynamicweb.dll
This class contains function to handle with structure changes.
[Obsolete("Use Paragraph, Page and Area Services instead after 9.3 release")]
public sealed class StructureChange
- Inheritance
-
StructureChange
- Inherited Members
Properties
PageService
Gets the service for working with the Page
[Obsolete("Use Services.Pages instead.")]
public static IPageService PageService { get; }
Property Value
Methods
Copy(int, ref string, ref int, ref bool, ref bool, int, int, string, string)
Copies the current page.
[Obsolete("Use PageService.CopyTo instead.")]
public static string Copy(int fromPageID, ref string toLanguage, ref int parentPageID, ref bool copyParagraphs, ref bool copySubpages, int copyID, int sort, string newPageID, string copyTime)
Parameters
fromPageIDint- Page to copy
toLanguagestring- Area to copy to
parentPageIDint- Parent page to copy to
copyParagraphsboolcopySubpagesboolcopyIDintsortintnewPageIDstringcopyTimestring
Returns
- string
- New page ID
CopyPage(int, ref string, ref int, ref bool, ref bool, int, int, string, string)
[Obsolete("Use PageService.CopyTo instead.")]
public static string CopyPage(int fromPageID, ref string toLanguage, ref int parentPageID, ref bool copyParagraphs, ref bool copySubPages, int copyID, int sortVal, string newPageID, string copyTime)
Parameters
fromPageIDinttoLanguagestringparentPageIDintcopyParagraphsboolcopySubPagesboolcopyIDintsortValintnewPageIDstringcopyTimestring
Returns
CopyParagraph(int, int)
Copy Current paragraph.
[Obsolete("Use ParagraphService.CopyTo instead.")]
public static int CopyParagraph(int paragraphID, int toPage)
Parameters
Returns
- int
- New paragraph ID.
Remarks
Resets cach of pages.
CopyParagraph(int, int, bool)
[Obsolete("Use ParagraphService.CopyTo instead.")]
public static int CopyParagraph(int paragraphID, int toPage, bool omcExperiment)
Parameters
Returns
DeleteArea(int)
Deletes an area
[Obsolete("Use AreaService.DeleteArea instead.")]
public static void DeleteArea(int areaId)
Parameters
areaIdint- ID of area to delete
DeletePages(ref int, ref bool, int)
Deletes current page.
[Obsolete("Use PageService.DeletePages instead.")]
public static object DeletePages(ref int pageID, ref bool topPage, int id)
Parameters
Returns
- object
Nothing
DuplicateParagraph(int, int, bool)
Copies the paragraph as part of an OMC Experiment.
[Obsolete("Use ParagraphService.CopyTo instead.")]
public static int DuplicateParagraph(int paragraphID, int toPage, bool omcExperiment)
Parameters
paragraphIDint- The paragraph ID.
toPageint- To page.
omcExperimentbool- if set to
true[omc experiment].
Returns
GetIdsFromLink(string)
Gets link IDs from the text.
[Obsolete("Use LinkHelper.GetInternalPageIdsFromText instead.")]
public static string GetIdsFromLink(string link)
Parameters
linkstring
Returns
- string
- String with IDs
GetLinkIds(string)
[Obsolete("Use ParagraphLanguageService.GetIdsFromLink instead.")]
public static string GetLinkIds(string strText)
Parameters
strTextstring
Returns
GetParent()
Gets parent ID.
public static object GetParent()
Returns
- object
- Current parent ID.
GetParent(int)
Gets parent ID of the input ID page.
public static int GetParent(int id)
Parameters
idint
Returns
- int
- Current parent ID.
MovePage(int, int, int, ref string)
Moves current page.
[Obsolete("Use PageService.Move instead.")]
public static bool MovePage(int sourcePageId, int destinationAreaId, int destinationPageId, ref string errorMessage)
Parameters
sourcePageIdint- Page to be moved
destinationAreaIdint- Area to move to.
destinationPageIdint- Top page to be moved
errorMessagestring- Error message if impossible to move pages.
Returns
MovePages(int, int, int, ref string)
[Obsolete("Use PageService.Move instead.")]
public static bool MovePages(int sourcePageId, int destAreaId, int destPageId, ref string errorMsg)
Parameters
Returns
MoveParagraph(int, int)
Moves current paragraph.
[Obsolete("Use ParagraphService.Move instead.")]
public static void MoveParagraph(int paragraphID, int toPage)