Skip to content

feat: Adding additional templates for Repeating fields#451

Open
Engerrs wants to merge 1 commit into
ckan:masterfrom
Engerrs:add-additional-repeating-fields-template
Open

feat: Adding additional templates for Repeating fields#451
Engerrs wants to merge 1 commit into
ckan:masterfrom
Engerrs:add-additional-repeating-fields-template

Conversation

@Engerrs

@Engerrs Engerrs commented Nov 3, 2025

Copy link
Copy Markdown
Member

Out of the box, the template for Repeating fields is straightforward, but the main issue with it is the space it takes, especially where there more the 2 values or fieldset of multiple fields in it.

This PR adds two additional options for displaying Repeating Fields:

  1. Accordion where the fields are stored
  2. Accordion, but with additional ability to provide grid layout for the fields to save space.
Peek.2025-11-03.14-40.mp4

I understand that having 3 different templates is hard to maintain, so I can suggest combaine those into 1 with additional configuration from the schema itself.
Maybe you have other suggestions that I can work on?

@wardi

wardi commented May 21, 2026

Copy link
Copy Markdown
Contributor

These would be more maintainable if they were incorporated into the existing repeating_subfields.html snippet by adding a couple new field options:

repeating_collapse: true
repeating_grid: true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants