Skip to content

moduleProductGrid – Adding Slug to Clean Data#4

Closed
wkhearn wants to merge 1 commit intothe-couch:masterfrom
wkhearn:clp-slugs
Closed

moduleProductGrid – Adding Slug to Clean Data#4
wkhearn wants to merge 1 commit intothe-couch:masterfrom
wkhearn:clp-slugs

Conversation

@wkhearn
Copy link
Copy Markdown
Contributor

@wkhearn wkhearn commented Jun 16, 2020

This PR adds the moduleProductGrid slug to the data being cleaned and delivered for that module. This is needed to properly utilize the logic set up for the CLP (All Products) nav bar functionality.

More context:
The module slug is referenced in productGrid.js in the Wool & Oak repo on lines 390 and 510, which enables the sticky nav buttons to jump to the correct module. Without the js-${slug} ID, the CLP nav bar will always have to be manually coded.

Clean Data for moduleProductGrid currently:
Screen Shot 2020-06-16 at 2 34 56 PM

Screen Shot 2020-06-16 at 2 32 04 PM

Nav Bar handleJump logic:
Screen Shot 2020-06-16 at 2 33 28 PM

@wkhearn wkhearn closed this Mar 26, 2026
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.

1 participant