Skip to content

Feature Request: Allow linking to individual Collection items via anchor (Content Blocks) #372

@wtdesign

Description

@wtdesign

I'm always frustrated when I want to link directly to a specific item inside a Content Blocks collection (e.g. a single accordion entry, FAQ item, or tab), but can't do it via the standard TYPO3 link picker.
Currently, it's only possible by manually crafting anchor IDs in the Fluid template (e.g. using iteration.index) or adding a separate anchor field for each item – which is neither user-friendly nor intuitive for editors.

Possible Solution
I would like to have built-in support for addressing individual collection items as link targets, such as:

  • Automatically generated anchor IDs for each collection item (e.g. #collection-- or #collection-).
  • Optional anchorId field per collection item to manually define linkable targets.
  • Integration into the TYPO3 link picker so editors can easily select a specific collection sub-item as a link destination – similar to content elements (tt_content_123).

This would allow smooth navigation to collection items, especially in longer content structures.

Describe alternatives you've considered

  • Using iteration.index in Fluid and manually adding id="element-{index}", then linking with #element-2 – works, but is not editor-friendly.
  • Adding a custom input field anchor to each collection item and referencing it manually – also fragile and redundant.
  • Using JavaScript scroll logic – too complex and inconsistent across devices.

Additional context
Here's a common use case: An accordion built with a Content Block Collection should allow buttons or links (on the same or another page) to scroll to and open a specific accordion item. Editors should be able to set this up without code knowledge.

Having native support for this would:

  • Simplify template logic
  • Improve accessibility
  • Greatly enhance editor UX

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions