Once the view type’s display styles are defined, you must update the search iterator to show the selected view type. Follow these steps:
-
If your management toolbar only has one view type, you can set the
displayStyle
attribute to the style you defined, otherwise follow the pattern below:<liferay-ui:search-iterator displayStyle="<%= displayStyle %>" markupView="lexicon" searchContainer="<%= searchContainer %>" />
The
displayStyle
’s value is set to the current view type. -
Save the changes.
Great! You’ve updated your search iterator to use your display styles.