Stylesheets.saveStyleSheet (Method)
Either create a new style sheets or updates an existing one. This style sheet is assigned to a page's style sheet set.
Returns:
StyleSheetID (integer)
Arguments:
Name | Type | Required | Description |
---|---|---|---|
pageID | RealPageID | Required | A page's ID. |
styleSheetSetID | StyleSheetSetID | Required | A style sheet set's ID. |
styleSheetID | StyleSheetID_0 | Required | A style sheet's ID. If this is a 0, CommonSpot creates a new style sheet instead of updating an existing one. |
moduleFileName | ModulePath | Required | The full path including the file name of the style sheet. If this value does not include a directory path, CommonSpot uses the directory path to the site's 'style' directory. |
Context:
License Requirements | None |
Permission Requirements | page:Style |
Deny Context | None |
Require Context | AuthoringEnabled |
Author Lock | If available |
Error Codes:
Code | Error Message |
---|---|
52003 | The specified style sheet is already included in the style sheet set. |
52005 | The page ID and style sheet set ID do not correspond with each other. |
52006 | The style sheet set ID and style sheet ID do not correspond with each other. |
52015 | The specified style sheet module '$1' does not exist. |
Notes:
None