Issue
- I need to make use of anchors in my content
Environment
- Liferay 7,3, 7.4, Quarterly Releases
Resolution
- To be able to use anchors in your content, you'll need to follow these steps:
- Add a Rich Text field in your structure.
- Click on the Link option and choose 'Link to anchor in the text' as Link Type.
- Fill in the Display Text and click Ok:
- In the editor, now click on the <> Source Option and edit your anchor code to add the reference to an existing element , for example:
<p><a name="my_anchor">My anchor</a></p>
Additional Information
Subscriber Exclusive Content
A Liferay Enterprise Subscription provides access to over 1,500 articles that include best practices, troubleshooting, and other valuable solutions. Sign in for full access.
Sign In