Category: API

API Extensions Helpful Tools Pages Sitefinity

Detecting the Sitefinity Environment (Backend, Design, Preview, Edit) with the SystemManager

The Sitefinity SystemManager is a helper class that simplifies working within the Sitefinity system. Although it supports several advanced operations (such as loading configuration settings, registering web services, etc.) one of it’s most helpful features is the ability to report the current environment in which your code is executing. This is done through several helpful […]

API Field Controls Guide Module Builder Sitefinity

Selecting Dynamic Content in Native Sitefinity Modules with Custom Fields

Sitefinity allows you to easily add simple custom fields to Content items using the backend administration, using the built-in field controls such as TextField. But what happens when you want to add a custom type and a custom field selector? The built-in custom field interface only allows a limited selection of field types, and the […]

API Code Sample Pages Permissions Sitefinity Widgets

Add Control to Sitefinity Page with Default Permissions

When adding controls to a Sitefinity page programmatically, by default it’s going to set restricted permissions so that only users in the Administrators role can view them. You can easily change this so that the widget is installed with the default permissions it would get by being dragged onto the page with the following code: […]

API Code Sample Configuration Sitefinity Toolbox Widgets

Registering Toolbox Widgets During Sitefinity Module Installation

When developing a Sitefinity Intra-Site Module you’ll likely be creating public widgets that your users will be dropping onto pages. Rather than relying on your users to manually add them to the toolbox, you can register these controls yourself during module installation. Here is a demo code snippet that shows an example of how you […]