Skip to main content
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 http://www.tecnativa.com/#anchor-name.

Usage

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

  • Edit any web page.

  • Go to Insert blocks > Structure.

  • Insert any block in your page.

  • Click on the snippet’s option Customize > Set anchor.

  • Set an anchor. If it is already used, you will be asked to use another.

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

  • Edit any web page.

  • Select some text.

  • Press Link in the editor toolbar.

  • Choose a page in the opened dialog.

  • Set an anchor there too.

  • 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 smashing it by providing a detailed and welcomed feedback.

Roadmap / Known Issues

  • If you try to save a wrong anchor, another dialog is shown, but backdrop disappears.

  • We should have a better dialog that explains to user the purpose of anchors and uses HTML5 to validate input, but it is quite hard to achieve until https://github.com/odoo/odoo/issues/14458 gets fixed.

Credits

Images

  • Odoo Community Association: Icon.

Contributors

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.

Metadata

Release files for odoo9-addon-website-snippet-anchor 9.0.1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo9-addon-website-snippet-anchor 9.0.1.0.0
File Interpreter ABI Platform
odoo9_addon_website_snippet_anchor-9.0.1.0.0-py2-none-any.whl Python 2 none any Details

Release files / odoo9_addon_website_snippet_anchor-9.0.1.0.0-py2-none-any.whl

Download URL odoo9_addon_website_snippet_anchor-9.0.1.0.0-py2-none-any.whl
Size 28.6 kB
Tags Python 2
SHA-256 checksum
How to use checksums
6d01fc5176e235e9833f5920fe3863b9382ae311f880506e6ca6d6125d9209e5
BLAKE2b-256 checksum
How to use checksums
79032394e2256bf12abfccbd2df686e5385a460ba14f499d300220154deff650
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page