Set internal content URLs
Learn how to set URLs that point to portal internal content (InternalContentURL).To set a URL that point to portal internal content (InternalContentURL)...
- Obtain a modifiable instance of an internal content URL.
- Identify the content node to which to assign the URL.
- Obtain the markup for which to set the URL.
- Set the required URL for the modifiable instance of the internal content URL.
Example - Setting an internal content URL:
// obtain modifiable instance of an existing InternalContentURL final Modifiable modifiable = cmController.getModifiableNode(internalContentUrl); // identify target of url final Identifiable identifiable = ... // identify markup final Markup markup = ... // set URL ((ModifiableInternalContentURL) modifiable).setTarget(identifiable, markup);
Parent: Set URLs
Related:
Set external content URLs