Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure you can loop through sections groups #474

Open
1 task done
stijns96 opened this issue Aug 20, 2024 · 2 comments
Open
1 task done

Make sure you can loop through sections groups #474

stijns96 opened this issue Aug 20, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@stijns96
Copy link
Contributor

stijns96 commented Aug 20, 2024

Is your feature request related to a problem? Please describe.
Some of our clients wants a sections with quick links to sections on the page. I've created a section group to group the sections that they can refer to.

Describe the solution you'd like
I'd like to loop through those section to automatically create a list of links with the referenced sections with the corresponding ID's.

Describe alternatives you've considered
A section with blocks with settings to add an ID and label. Also add the option to add an ID to the sections in the group. This will cause problems and inconsistencies.

Checklist

  • I have checked and made sure that the proposal adheres to this plugin's principles
@karreiro
Copy link
Contributor

👋 Hi @stijns96, thanks for the suggestion!

When you think about this feature, is this what you have in mind?

{% for section in section_group.sections %}
  {{ section.id }}
{% endfor %}

Thanks again for submitting this suggestion!

@stijns96
Copy link
Contributor Author

Hi @karreiro,

You're welcome!

Yeah, something like that would be good. You probably have to check what is possible, but since they are json files, it should be possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants