Pixelsilk API function for enabling or disabling a plugin--these are the plugins on the plugin tab in the administration design area
pluginName: the name of the plugin (C# type string)
enabled: true = enabled, false = disabled (C# type bool)

The enablePlugin function returns void.

C# Example:
EnablePlugin(pluginName, enabled);
Note the capital first letter of the C# method.

HTTP Example:
Request Headers:
POST /api2/updateConfig
Host: www.example.com
Content-Length: 36
Content-Type: application/x-www-form-urlencoded
Cookie: auth=CF58ECF6D5129E35FBB...99E575BFD561F0B1389

Request Data:
Unencoded Data:

Url-encoded Data:

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

Response Data:

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

Input Object:

Returned Data:

Back to Configuration »