Category: Widgets

Content Blocks Customization SDK Sitefinity Templates Widgets

Mapping Sitefinity Templates from the SDK

There are several different ways to map Sitefinity widgets to external templates, including globally using the ViewMap. You can also use the built-in Sitefinity Widget Template editor and even Sitefinity Thunder to modify templates and copy them to external files. However, did you know that a copy of every single widget template is included in […]

CONTINUE READING
Code Sample Customization Ecommerce Shopping Cart Sitefinity Templates Validation Widgets

Product Maximum and Minimums in Sitefinity Part 2: Shopping Cart

We previously looked at how you can enforce minimum and maximum product quantities on the Sitefinity product details page. However, users can still override the quantities in the shopping cart, defeating the restrictions. Fortunately, the shopping cart template also includes a validation control for each item. By mapping this control to an external User Control […]

CONTINUE READING
Code Sample Content Blocks Customization Pages Sitefinity Video Widgets

Creating a Hideable Sitefinity Content Block Widget

Adding a content block to a Sitefinity page with a Content widget (such as News, Events, Blogs, etc.) displays that content for both the master list and single item details view for the content. This video demonstrates how you can easily inherit from this control to make a hideable content block that only renders when […]

CONTINUE READING
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:

CONTINUE READING
Blogs Code Sample Sitefinity Taxonomy Widgets

Filtering the Sitefinity Taxonomy Widget for a Specific Blog

The classification widgets in Sitefinity allows you to display the list of taxonomy names (such as categories or tags) used by content items in Sitefinity. You can specify a specific content type (even Dynamic Modules with this workaround) and to allow your visitors to filter the content items. Custom Blogs Taxonomy Control However, if you […]

CONTINUE READING
Code Sample Pages Sitefinity Widgets

Programmatically Adding Controls to a Sitefinity Page

The PageManager in Sitefinity has a method called CreateControl that is overloaded to allow both Compiled (dll) controls as well as simple User Controls (.ascx files) to be initialized and added to a Sitefinity page. Both overloads require a string containing the name of the ContentPlaceholder that will hold the control, which is defined in […]

CONTINUE READING