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 Locations module: Create the web service for the Locations module, you need to create the definitions class. You use the definitions class for building the user interface (UI) for the backend and the frontend views of the module. To create the definitions class:
static
LocationsDefinitions()
{
SystemManager.GetApplicationModule(LocationsModule.ModuleName);
}
NOTE: You create the ModuleName constant later in this tutorial. For more information, see Locations module: Implement the module class.
public
const
string
BackendDefinitionName =
"LocationsBackend"
;
BackendListViewName =
"LocationsBackendListView"
BackendInsertViewName =
"LocationsBackendInsertView"
BackendEditViewName =
"LocationsBackendEditView"
BackendPreviewName =
"LocationsBackendPreview"
FrontendDefinitionName =
"LocationsFrontend"
FrontendListViewName =
"LocationsFrontendListView"
FrontendDetailViewName =
"LocationsDetailView"
ContentViewControlElement DefineLocationsBackendContentView(ConfigElement parent)
throw
new
NotImplementedException();
ContentViewControlElement DefineLocationsFrontendContentView(ConfigElement parent)
NOTE: You implement these methods in the next steps of this tutorial when you create the backend and frontend views of the Locations module. In the methods, you must return a ContentViewControlElement object that contains the UI for the respective view.
You must call the DefineLocationsBackendContentView and the DefineLocationsFrontendContentView methods you created when Locations module: Implement a configuration class.
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