Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsGitHubDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

Create a subtitle widget

Describes how to create a subtitle widget in Optimizely Configured Commerce.

A page title widget is a widget that can be reused to style a title of a page.

  1. Create a new class and derive from AbstractWidget.

  2. Add members to the class applicable for the custom widget. In this case, a string Title property.

  3. Decorate the members with the corresponding attribute types. The Title property in this example is a textbox.

  4. Create a new folder with the same name as the widget in the [theme]/Content folder.

  5. Edit the markup in the view to display the widget