Overview
Structured Content (Tool)
Overview
Content that follows a specific, repeatable format that is stored and available throughout the project (i.e. Blog, News, Events, etc.)
Structured content consists of:
- A Class that inherits from BusinessObject<T> to provide the data structure.
- A user-control that inherits from ToolGridList<T> to provide the list interface for managing entries.
- A user-control that inherits from ToolControl<T> to provide the interface for managing data entry.
Once created the Control must be registered: System Administrator -> Data Sections -> Tools, and then provide permissions to the applicable roles.
Usage
Data can be accessed via the AdvantageModuleEngine that is available in the following components
- AdvantagePageTemplate
- AdvantageModule
- AdvantageModuleRewrite
There are many ways to access the data. Please review the Methods of AdvantageModuleEngine.
Data Entity (BusinessObject)
BusinessObject<T> : BusinessObjectBase
Methods & Properties
Overview
A BusinessObject is a container that holds the data entity you are creating. There is no need to interact with the database. All CRUD and versioning happens automatically when you inherit from BusinessObject<self>
Any public property with a GET/SET will automatically be saved.
Excluding a public property is possible if you decorate the property with [XMLIgnore].
Override methods (Mandatory)
SetSummaryDataRow -> Used to create the data expression that will be used to fill the list tool for managing the data add/edit screen.
Override methods (optional)
SetSearchableProperties -> used to allow data to be indexed for performance benefits during searching and display.
Usage
- Creating fields are done using properties.
- Specifying List fields for the tool control is done inside the SetSummaryDataRow method using AddSummaryDataRow(title, data)
Example
Supporting classes/objects for example