Using in an Entry

Auto-Generated Anchors

By default, anchors are generated automatically from the block ID. With the default prefix blockIdAnchor, an anchor link shows up in the control panel as #blockIdAnchor42. The field itself stays disabled, with a short note explaining that the anchor is generated automatically.

Custom Anchors

When "Allow Custom Anchors" is turned on in the field settings, editors can enter their own anchor IDs. For example:

  • #about-us
  • #pricing-section
  • #contact-form

Custom anchors are validated to ensure they:

  • Are not more than 100 characters
  • Start with a letter
  • Contain only letters, numbers, hyphens (-), and underscores (_)
  • Do not contain spaces or other special characters
  • Are unique within the entry

If a Matrix block is left without a custom anchor, it falls back to the auto-generated one.

Using Anchor

When an editor wants to link to a particular block on a page, they use the copy anchor button in the field, then paste the link into their content.