The Sitefinity System Manager 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., it’s most helpful feature is probably the ability to report the current environment in which your code is executing.
Today’s quick post just serves as a bookmark for a few helpful tools that I’ve used in the past to troubleshoot and debug GET and POST requests. Turns out I needed to use one again and I couldn’t remember what it was called or where to find it!
The Sitefinity Module builder allows you to create custom types on the fly for use as custom modules. In the 5.0 release back in February, a two new field types were added to the module builder: Guid and Array of Guids. These allow you to “link” content items using their Id properties, adding support of one-to-many and many-to-many relationships between your content.
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.
Fortunately, there is an extension method in the Telerik.Sitefinity.Modules.Pages that can return the actual full url to the page.
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:
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.
When migrating to the latest Sitefinity from the old version 3.7, by default the original .aspx page extension remains intact.
You can remove (or change) this extension with this simple code snippet.