Create a content widget
In Sitecore Discover, banner and HTML block widgets are content widgets for your application. You have freedom to use an appearance setting (template) or your HTML code, then configure it to your needs with CSS and JavaScript.
This walkthrough describes how to:
Create a content widget
To create a content widget:
- On the menu bar, click Widgets.
- On the Widgets tab, click Add Widget.
- Click Banner or HTML Block.
- Enter or select values for the Widget name, RFK ID, Variation name, and Will be used in form fields.
- To review your widget, click Next.
- Click Save or to change your settings click Prev.
Select a template
To select a template:
-
On the menu bar, click Widgets.
-
On the Widgets tab, click the name of the widget you want to open.
-
On the Widget Settings tab, on the right, in the Template card, click Edit.
-
On the Template selection page, to filter list of template cards:
- By name, in the search input text box, enter text.
- By entity, in the Entities dropdown, select an entity.
- By creator, in the Creator dropdown, select Domain & Sitecore, Domain, or Sitecore.
-
In the list of template cards, in a card, to open a dialog for more information, click
.In the open dialog, on the top right, to close dialog, click
. -
In the card of the selected template, click Choose.
For more options on banner and HTML block widget configuration, refer to Types of appearance styles.
Define the appearance using HTML, CSS, and JS
To define the appearance using HTML, CSS, and JS: