Views
Configure the dashboard
You can plug in your components directly through the component plug-in functionality. However, you cannot set up different dashboards for different roles.
Create a component for the assets pane
The component monitors the current page context and displays its name. The following is the corresponding JavaScript widget You can find a working example on the Optimizely GitHub https //github.
Create a component for a Web Form
To create an IFrameComponent , add the IFrameComponent attribute to the class as follows The IFrameComponent attribute is extendable so that you can add additional functionality if needed. The IFrameComponent has some required and optional parameters as follows Url (required) – The URL to the source, which is the original URL that loads into the iFrame when it initializes.
Create a view
In Optimizely Content Management System (CMS) you can create views in the user interface.
Hide or control access to customized components
The AllowedRoles property for component definitions lets you control the groups that are allowed to view and select a certain component. You can hide a component completely by setting the AllowedRoles property to none, or setting it to a null string prevents an access check.
Views
A view is composed of a definition of the basic structure and components that plug into areas. The view and component definitions define basic behavior and a client-side widget responsible for creating the user interface.
Modify a view through configuration
The following example shows how to add a component (for a view through configuration) to the Main area plug-in path of the Test view. definitionName usually maps against the full name of the class, including namespace.
Plug-in components into a view
When you create a component definition, you can automatically plug the component definition into a view by defining plug-in paths to one or several containers. A plug-in path is a unique string that describes the plug-in area.
Replace a component globally
The following example shows how to replace a component for the entire system. This example also shows how to replace the built-in Optimizely Content Management System (CMS) page tree with a custom page list component.