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

Add taxonomy values date format customization #29

Merged

Conversation

nbusseneau
Copy link
Contributor

Allow users to customize taxonomy value dates form (and thus, indirectly, URLs), akin to taxonomy names customization.

Non-breaking change: defaults to previous behavior.

Allow users to customize taxonomy value dates form (and thus,
indirectly, URLs), akin to taxonomy names customization.

Non-breaking change: defaults to previous behavior.
@nbusseneau
Copy link
Contributor Author

nbusseneau commented Sep 11, 2020

I needed URLs to look like archives_month:2020_09 rather than archives_month:sep_2020 for URL rewrite purposes, and thought this might be interesting.

If this MR is accepted, I am willing to update archives.html.twig in Quark theme accordingly.

@mahagr mahagr requested a review from rhukster October 9, 2020 07:29
@mahagr
Copy link
Member

mahagr commented Oct 9, 2020

@rhukster Can you take a look?

@rhukster rhukster merged commit 88b58b3 into getgrav:develop Oct 11, 2020
@rhukster
Copy link
Member

looks good to me, nicely backward compatible as it falls back to the existing hardcoded values if not set.

@nbusseneau nbusseneau deleted the feature/taxonomy-values-customization branch October 26, 2020 15:04
nbusseneau added a commit to nbusseneau/grav-theme-quark that referenced this pull request Oct 26, 2020
Take advantage of taxonomy_values format coming from the plugin settings.
See getgrav/grav-plugin-archives#29 for details.
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.

3 participants