Shopify / Shopify/theme-tools

Make sure you can loop through sections groups

Open
#474 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
234
Forks
92
Avg merge
1d 3h
Merged PRs (30d)
6

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the principles referenced in docs/prettier-plugin-liquid/principles/index.md and inspect packages/prettier-plugin-liquid. Trace how section groups and their sections are represented and iterated. Done means a section group can produce links for its referenced sections with their corresponding IDs, with coverage for the supported behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.