v 8.0 v 9.0 v 10.0 v 11.0 Third Party 766
Download for v 11.0 Deploy on Odoo.sh
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Website Builder (website)
Discuss (mail)
Lines of code 132
Technical Name website_snippet_anchor
LicenseLGPL-3
Websitehttps://github.com/OCA/website
Versions 8.0 9.0 10.0 11.0
You bought this module and need support? Click here!
License: AGPL-3

Set Snippet's Anchor

This module extends the functionality of the website editor to support setting an anchor to any section of your web page and allow you to link to them very easily.

Anchors are just the HTML id attribute, which is commonly used to add it to any URL and get directly to the element with that anchor, in the form of https://www.tecnativa.com/#anchor-name.

Usage

Valid character ranges for anchors are: [A-Z][a-z][0-9]_-

To add an anchor to any element, you need to:

  1. Edit any web page.
  2. Go to Add blocks > Structure.
  3. Insert any block in your page.
  4. Click on the snippet's option Customize > Choose anchor.
  5. Set an anchor. If it is already used or has an invalid format, you will be asked to use another.

To link to any page's anchor, you need to:

  1. Edit any web page.
  2. Select some text.
  3. Press Link in the editor toolbar.
  4. Choose a page in the opened dialog.
  5. Set an anchor there too (without # symbol).
  6. Press Save.
Try me on Runbot

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smash it by providing detailed and welcomed feedback.

Credits

Images

  • Odoo Community Association: Icon.

Contributors

Do not contact contributors directly about support or help with technical issues.

Maintainer

Odoo Community Association

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

To contribute to this module, please visit https://odoo-community.org.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.