Skip to content

Instantly share code, notes, and snippets.

@brianlarson
Last active March 29, 2021 11:36
Show Gist options
  • Save brianlarson/a54b2b70c8bdef7912584182ceba8aa4 to your computer and use it in GitHub Desktop.
Save brianlarson/a54b2b70c8bdef7912584182ceba8aa4 to your computer and use it in GitHub Desktop.
Section entry URI format supporting hierarchical categories field
products/{% if productCategory %}{% for cat in productCategory %}{{ cat.slug }}/{% endfor %}{% else %}/{% endif %}{slug}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment