Set external content URLs
Learn how to set URLs that point to external content (ExternalContentURL).
To set a URL that point to external content (ContentURL)...
- Obtain a modifiable instance of an external content URL.
- Obtain the markup for which you want to set the URL.
- Set the required URL for the modifiable instance of the external content URL.
Example - Setting an external content URL:// obtain modifiable instance of an existing ContentURL final Modifiable modifiable = cmController.getModifiableNode(contentUrl); // identify target of url final String target = ... // identify markup final Markup markup = ... // set URL ((ModifiableContentURL) modifiable).setURL(target, markup);
Parent
Set URLs
Set internal content URLs