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 […]
Category: Pages
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 […]
If you are working with the Sitefinity Pages API you can easily retrieve the Id of any page in the system. You might also be working with a custom or intra-site module, which has a static Guid property for the landing page. The Page object itself only has a UrlName property, which returns only the […]
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: […]
Sitefinity includes a helpful inline editing feature, which allows an authorized user to quickly update content on the public website instead of the administration backend. This can be enabled for all, some, or no users, depending on your needs and configuration. http://blip.tv/play/AYL1vnQC.html?p=1
By default, Sitefinity disallows special characters in the SEO title for a page. This video demonstrates how to override this setting, allowing you to specify different restrictions (or remove them entirely). http://blip.tv/play/AYL0%2BDUC.html?p=1 Regular Expressions You may have noticed that for the first regex property, I replaced it with [^\S\s]. The reason for this is that […]
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 […]
When migrating to the latest Sitefinity from the old version 3.7, by default the original .aspx page extension remains intact. It is stored in the Extension property of the PageNode. You can remove (or change) this extension with this simple code snippet: RemoveSitefinityPageExtensions.cs on Gist