IMPORTANT: This version of Sitefinity CMS is out of support and the respective product documentation is no longer maintained and can be outdated. Use the version selector to view a supported product version.
After you create the Locations module: Create the locations details view, you create the locations view designer. Perform the following:
using
Telerik.Sitefinity.Web.UI.ControlDesign;
Telerik.Sitefinity.Configuration;
Telerik.Sitefinity.Web.Configuration;
public
class
LocationsViewDesigner : ContentViewDesignerBase
{
}
protected
override
string
ScriptDescriptorTypeName
get
return
typeof
(ContentViewDesignerBase).FullName;
System.Type ResourcesAssemblyInfo
Config.Get<ControlsConfig>().ResourcesAssemblyInfo;
void
AddViews(Dictionary<
, ControlDesignerView> views)
var listSettings =
new
ListSettingsDesignerView();
listSettings.DesignedMasterViewType =
(MasterListView).FullName;
var singleItemSettings =
SingleItemSettingsDesignerView();
singleItemSettings.DesignedDetailViewType =
(DetailsView).FullName;
views.Add(listSettings.ViewName, listSettings);
views.Add(singleItemSettings.ViewName, singleItemSettings);
In the code above, you first get the name of the JavaScript type that the designer will use. The designers can reuse, for example, the base class implementation and just customize some labels. Next, you get a type from the resource assembly. Resource assembly is an assembly that contains embedded resources such as templates, images, CSS files, and so on. By default, the assembly is Telerik.Sitefinity.Resources.dll. Finally, you add the designer views.
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important