Pixelsilk API function to move a section to be immediately before another section (used from the Manage Pages UI)--requires the move-page permission
sectionToMoveId: the unique identifier of the section to be moved
sectionToInsertBeforeId: the unique identifier of the section it is to be inserted before

The function moveSectionInsertBefore returns void.

C# Example:
Guid sectionToMoveId = <id of section to move>;
Guid sectionToInsertBeforeId = <id of section to insert before>;
MoveSectionInsertBefore(sectionToMoveId, sectioToInsertBeforeId);
Note the capital first letter of the C# method.

HTTP Example:
Request Headers:
POST /api2/moveSectionInsertBefore HTTP/1.1
Content-Length: 215
Content-Type: application/x-www-form-urlencoded
Cookie: auth=C949A2B8F95F...1D114A1881A6

Request Data:
Unencoded Data:

Url-encoded Data:

Response Headers:
HTTP/1.1 200 OK
Set-Cookie: auth=DC64C2181B16...DF9BD1EDD5E; path=/
Content-Type: text/javascript; charset=UTF-8
Content-Length: 2

Response Data:

JavaScript Example:
Method Call:
pixelsilk2.moveSectionInsertBefore(input, callback);

Input Object:

Returned Data:

Back to Pages »