Table of Contents

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

IPageService

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

fromPageID int
Page to copy
toLanguage string
Area to copy to
parentPageID int
Parent page to copy to
copyParagraphs bool
copySubpages bool
copyID int
sort int
newPageID string
copyTime string

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

fromPageID int
toLanguage string
parentPageID int
copyParagraphs bool
copySubPages bool
copyID int
sortVal int
newPageID string
copyTime string

Returns

string

CopyParagraph(int, int)

Copy Current paragraph.
[Obsolete("Use ParagraphService.CopyTo instead.")]
public static int CopyParagraph(int paragraphID, int toPage)

Parameters

paragraphID int
toPage int

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

paragraphID int
toPage int
omcExperiment bool

Returns

int

DeleteArea(int)

Deletes an area
[Obsolete("Use AreaService.DeleteArea instead.")]
public static void DeleteArea(int areaId)

Parameters

areaId int
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

pageID int
topPage bool
id int

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

paragraphID int
The paragraph ID.
toPage int
To page.
omcExperiment bool
if set to true [omc experiment].

Returns

int
Gets link IDs from the text.
[Obsolete("Use LinkHelper.GetInternalPageIdsFromText instead.")]
public static string GetIdsFromLink(string link)

Parameters

link string

Returns

string
String with IDs

GetLinkIds(string)

[Obsolete("Use ParagraphLanguageService.GetIdsFromLink instead.")]
public static string GetLinkIds(string strText)

Parameters

strText string

Returns

string

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

id int

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

sourcePageId int
Page to be moved
destinationAreaId int
Area to move to.
destinationPageId int
Top page to be moved
errorMessage string
Error message if impossible to move pages.

Returns

bool

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

sourcePageId int
destAreaId int
destPageId int
errorMsg string

Returns

bool

MoveParagraph(int, int)

Moves current paragraph.
[Obsolete("Use ParagraphService.Move instead.")]
public static void MoveParagraph(int paragraphID, int toPage)

Parameters

paragraphID int
toPage int
To top