newSection()
Pixelsilk API function to create an empty section (page)--requires the add-page permission
Parameters:
The function newSection has no parameters.
Output::
The function newSection returns an object containing full section information for an empty section.
C# Example::
object emptySection = NewSection();
Note the capital first letter of the C# method.
HTTP Example:
Request Headers:
POST /api2/newSection HTTP/1.1
HOST: www.example.com
Content-Length: 36
Content-Type: application/x-www-form-urlencoded
Cookie: auth=E2BC4B18891D...AC53146D1F1F
Request Data:
Unencoded Data:
token=7AdbNHZQBtwc...RPTEK8UvSUQ=
Url-encoded Data:
token=7AdbNHZQBtwc...TEK8UvSUQ%3d
Response Headers:
HTTP/1.1 200 OK
Set-Cookie: auth=AB5626C265B7...BBD06A5571E; path=/
Content-Type: text/javascript; charset=UTF-8
Content-Length: 1428
Response Data:
{
"isRoot":false,
"path":"New Page",
"sortOrder":0,
"pageType":"HTML Page",
"pageTypeId":"00000000-0000-0000-0000-000000000000",
"baseType":"HTML Page",
"pathName":"New_Page",
"windowTitle":"New Page",
"briefDescription":null,
"metaDescription":null,
"siteMapDescription":null,
"metaKeywords":null,
"itemsPerPage":0,
"linksPerPage":0,
"childPageExtension":null,
"includeInXmlSiteMap":true,
"siteMapPriority":null,
"siteMapUpdateFrequency":null,
"head":null,
"listSectionRedirectMode":null,
"listSectionRedirect":null,
"listSectionSendEmail":false,
"listSectionEmailFromText":null,
"listSectionEmailFromField":null,
"listSectionEmailToText":null,
"listSectionEmailToField":null,
"listSectionEmailSubjectText":null,
"listSectionEmailSubjectField":null,
"listSectionEmailInsertItem":false,
"listSectionEmailBody":null,
"defaultView":null,
"urlMode":"PathSlash",
"urlModeParameter":null,
"toLowerCase":false,
"redirects":null,
"description":null,
"security":null,
"sortQuery":null,
"filterQuery":null,
"theme":null,
"menuName":"New Page",
"id":"00000000-0000-0000-0000-000000000000",
"urlRelative":null,
"enabled":true,
"displayInNav":true,
"includeInHtmlSiteMap":true,
"approved":true,
"typeImage":null,
"typeName":null,
"children":[
],
"inheritSecurityFromParent":true,
"inheritOptionsFromParent":true,
"inheritUrlSettingsFromParent":true,
"inheritAdvancedStettingsFromParent":true,
"shouldBeEnabled":false,
"shouldBeDisplayedInNav":false,
"shouldBeVisibleInSiteMap":false,
"isRoot":false
}
JavaScript Example:
Method Call:
pixelsilk2.newSection(callback);
Input Object:
The function newSection has no parameters.
Returned Data:
{
"isRoot":false,
"path":"New Page",
"sortOrder":0,
"pageType":"HTML Page",
"pageTypeId":"00000000-0000-0000-0000-000000000000",
"baseType":"HTML Page",
"pathName":"New_Page",
"windowTitle":"New Page",
"briefDescription":null,
"metaDescription":null,
"siteMapDescription":null,
"metaKeywords":null,
"itemsPerPage":0,
"linksPerPage":0,
"childPageExtension":null,
"includeInXmlSiteMap":true,
"siteMapPriority":null,
"siteMapUpdateFrequency":null,
"head":null,
"listSectionRedirectMode":null,
"listSectionRedirect":null,
"listSectionSendEmail":false,
"listSectionEmailFromText":null,
"listSectionEmailFromField":null,
"listSectionEmailToText":null,
"listSectionEmailToField":null,
"listSectionEmailSubjectText":null,
"listSectionEmailSubjectField":null,
"listSectionEmailInsertItem":false,
"listSectionEmailBody":null,
"defaultView":null,
"urlMode":"PathSlash",
"urlModeParameter":null,
"toLowerCase":false,
"redirects":null,
"description":null,
"security":null,
"sortQuery":null,
"filterQuery":null,
"theme":null,
"parent":null,
"menuName":"New Page",
"id":"00000000-0000-0000-0000-000000000000",
"urlRelative":null,
"enabled":true,
"displayInNav":true,
"includeInHtmlSiteMap":true,
"approved":true,
"typeImage":null,
"typeName":null,
"children":[
],
"inheritSecurityFromParent":true,
"inheritOptionsFromParent":true,
"inheritUrlSettingsFromParent":true,
"inheritAdvancedStettingsFromParent":true,
"shouldBeEnabled":false,
"shouldBeDisplayedInNav":false,
"shouldBeVisibleInSiteMap":false
}
Back to Pages »