-
Notifications
You must be signed in to change notification settings - Fork 76
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
Psgdpr module checkbox fix #360
Psgdpr module checkbox fix #360
Conversation
Thanks @JBLach you're on fire these days 🔥 I have a question, do you see any way to avoid that override? |
Hi @NeOMakinG |
Adding an override means that if the module get updated, this override will probably not be updated in the future, it's always a bad idea in case we can avoid it, this is why I asked |
Sure, i understand. I will think about a solution tomorrow |
Hi @NeOMakinG We can try to create a {extends file="modules/psgdpr/views/templates/hook/displayGDPRConsent.tpl"}
{block name='gdpr_checkbox'}
<div id="gdpr_consent" class="mt-2 gdpr_module_{$psgdpr_id_module|escape:'htmlall':'UTF-8'}">
<span class="form-check">
<input id="psgdpr_consent_checkbox_{$psgdpr_id_module|escape:'htmlall':'UTF-8'}" name="psgdpr_consent_checkbox" type="checkbox" value="1" class="form-check-input psgdpr_consent_checkboxes_{$psgdpr_id_module|escape:'htmlall':'UTF-8'}">
<label class="form-check-label psgdpr_consent_message">
{$psgdpr_consent_message nofilter}{* html data *}
</label>
</span>
</div>
{/block} |
Does it work if the template comes from the module directly? I guess it would be cleaner than overriding the whole file yes! I would agree. @Hlavtox wdyt? |
I tested this solution and it works |
Go for it! Seems way cleaner :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So quick 🍬
I guess we need towait for psgdpr to be released before merging this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Waiting for psgdpr release
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gdpr module has been released, we can merge this :)
Before
After