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

Allow custom read_more_link #114

Open
korneelwever opened this issue Jan 31, 2023 · 0 comments
Open

Allow custom read_more_link #114

korneelwever opened this issue Jan 31, 2023 · 0 comments

Comments

@korneelwever
Copy link
Contributor

Currently you cannot customise the path where the "/privacy-statement" is located.
Having multiple languages, I have multiplte privacy statements. I'd like to be able to add this as a param in the render_esi.
so I don't have to do this:
{% set cookies = render_esi(path('ch_cookie_consent.show_if_cookie_consent_not_set', { 'locale' : app.request.locale })) %} {{ cookies|replace({'privacy-statement': app.request.locale ~'/privacy'})|raw }}

but can do this:
{{render_esi(path('ch_cookie_consent.show_if_cookie_consent_not_set', { 'locale' : app.request.locale, 'read_more_link' : app.request.locale ~'/privacy'})) }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant