Set supported markups
We can set supported markups on modifiable instances that implement the ModifiableMarkupCapable interface. For example, these can be the following:
- ModifiableContentPage
- ModifiableContentLabel
- ModifiableContentURL
For content nodes, that is content pages, labels, and URLs, set a supported markup. Otherwise they will not show in the read-only model.
To set the supported markups for a resource:
- Obtain a modifiable instance of the resource for which to set supported markups.
- Use the appropriate methods of the ModifiableMarkupCapable interface to set supported markups. For example, use the addMarkup method.
Set a supported markup on a layout control
final MarkupList markupList = ...; final Modifiable modifiable = lmController.getModifiableNode(control); Markup markup = markupList.getByName("html"); ((ModifiableMarkupCapable) modifiable).addMarkup(markup);
What to do next
For more detail about the markup list in the first line of the example and how to obtain it refer to Obtain a model from the portal.
Parent Modify properties