getLayoutSkins()

Pixelsilk API function to get the layout skin for the theme--requires the edit-skin permission
Parameters:
themeId: the unique identifier of the theme

Output:
The function getLayoutSkins returns an object containing the skins

C# Example:
Guid themeId = <theme's id>;
object skins = GetLayoutSkins(themeId);
Note the capital first letter of the C# method.

HTTP Example:
Request Headers:
POST /api2/getLayoutSkins HTTP/1.1
HOST: www.example.com
Content-Length: 121
Content-Type: application/x-www-form-urlencoded
Cookie: auth=B4C9DC9126CF...4C737A297BEF

Request Data:
Unencoded Data:
json={
   "themeId":"5c610500-d09d-4683-8414-8bd9033f7336"
}&token=7AdbNHZQBtwc...RPTEK8UvSUQ=

Url-encoded Data:
json=%7b%0d%0a+++...%22%0d%0a%7d&token=7AdbNHZQBtwc...TEK8UvSUQ%3d

Response Headers:
HTTP/1.1 200 OK
Set-Cookie: auth=EDC8F8D82E92...647DED28AC4; path=/
Content-Type: text/javascript; charset=UTF-8
Content-Length: 3047

Response Data:
{
  "id":"2327e617-1850-4a2e-9e7f-8f10f5fd072f",
  "content":"***Here you will find all the code for the basic page.***",
  "viewItem":"null",
  "alternatingItem":"null",
  "addEditItem":"null",
  "itemDetail":"null",
  "firstItem":"null",
  "separator":"null",
  "lastItem":"null",
  "activeItem":"null",
  "isSectionSkin":false,
  "sectionId":null,
  "typeId":null
}

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

Input Object:
{
    themeId:"48fc8381-4fb7-4c12-8f4b-396332dff468"
}

Returned Data:
{
    "id":"9a60b666-dabe-4bf6-8ab2-70cc7f99fc78",
    "content":"The content skin's content.",
    "viewItem":"",
    "alternatingItem":"",
    "addEditItem":"",
    "itemDetail":"",
    "firstItem":"",
    "separator":"",
    "lastItem":"",
    "activeItem":"",
    "isSectionSkin":false,
    "sectionId":null,
    "typeId":null
}

Back to Themes »