Hello, human readable URLs would be nice. How can I achieve that human readable URLs are output for this extension under Typo3 11.5.x? Whatever I try, the URL is always like https://mysite.com/glossar?tx_dpnglossary_glossary%5Baction%5D=show&tx_dpnglossary_glossary%5Bcontroller%5D=Term&tx_dpnglossary_glossary%5Bterm%5D=7&cHash=06090976b1dd5ccbd07f0c3c285c10e4
Hi! In a TYPO3 11.5.21 (Multidomain-Installation) I see two PHP Warnings when editing an term:
PHP Warning
Core: Error handler (BE): PHP Warning: Undefined array key "uid" in //typo3_src-11.5.21/typo3/sysext/core/Classes/Routing/Enhancer/PluginEnhancer.php line 87
PHP Warning
Core: Error handler (BE): PHP Warning: Undefined array key "l10n_parent" in /typo3_src-11.5.21/typo3/sysext/core/Classes/Routing/Enhancer/PluginEnhancer.php line 88
When switching back to PHP 7.4, no warnings came up.
The functionality is not affected, is therefore more of an optical flaw.
Best regards, Christoph
Hi @criwe,
I tested this in TYPO3 11.5.22 with PHP 8.0.27 and could'nt reproduce this warning. The warning also comes from a core class, so maybe it could be a missconfiguration in your instance or something?!
For now I don't see this as an issue in this extension, unless you provide me additional information I will close this issue for now.
Greetings Daniel
[BUGFIX] Use proper table tca key for translation pointer field value
[BUGFIX] Use proper total for deny buttons percentage calculation
System information: TYPO3 11.5 PHP 7.4.30 MariaDB 10.5 (MySQL 5.5.5-10.5.15-MariaDB-0+deb11u1)
If you try to create a translation for a necessary_cookie_options item, the following SQL error is thrown:
2: SQL error: 'Incorrect integer value: '' for column db.tx_mindshapecookieconsent_domain_model_cookieoption.cookie_category at row 1' (tx_mindshapecookieconsent_domain_model_cookieoption:NEW636d1917988cd937434709)
The problem should be the new defaults for MariaDB. It enforces field types more strictly, and therefore '' is not cast to integer.
Adding a default => 0
value to the TCA configuration fixed the issue.
https://github.com/mindshape-GmbH/mindshape_cookie_consent/blob/8aba6327540282898198463ece743d9835af8fdd/Configuration/TCA/tx_mindshapecookieconsent_domain_model_cookieoption.php#L68-L75
Hi @bfzgaier,
thanks for your research, I could reproduce this now and added the default value for this field.
See: 42986eb50589b38465ac88f83f67a824a609b10d
Greetings Daniel
[BUGFIX] Add default value to prevent SQL error with "strict trans tables" activated
Google Consent Mode Integration (Feature Request)
Hi, it would be nice (essential for comercial use) to have a tracking without consent. When do you support google consent mode? Greets from Münster, M.
Hi @mikeemike7,
I what do you mean exactly? You still have to add the script for Google Analytics etc. by yourself, therefore you would be able to adjust the integration as you like.
As I'm understanding THIS right you would always load analytics but with denied consent by default like this:
<script async src="//www.googletagmanager.com/gtag/js?id={analyticsId}" data-ignore="1"></script>
<script data-ignore="1">
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments) }
gtag("consent", "default", { ad_storage: "denied", analytics_storage: "denied" });
gtag('js', new Date());
gtag('config', '<f:format.raw>{analyticsId}</f:format.raw>', { 'anonymize_ip': true });
</script>
Then you could add the consent event to update the consent mode:
<script data-ignore="1">
window.cookieConsentLoadedGoogleAnalytics = false;
window.addEventListener('cookieConsent', function (event) {
if (
false === window.cookieConsentLoadedGoogleAnalytics &&
event.detail.hasOption('google_analytics')
) {
gtag("consent", "update", { ad_storage: 'granted', analytics_storage: 'granted' });
}
});
</script>
But honestly I'm not sure about the legal safety, as I can't give you legal information you should still consultate your privacy lawyer for this.
When I'm currently integrating a consent I completely withhold the loading of the external scripts to be safe there, like this:
<script data-ignore="1">
window.cookieConsentLoadedGoogleAnalytics = false;
window.addEventListener('cookieConsent', function (event) {
if (
false === window.cookieConsentLoadedGoogleAnalytics &&
event.detail.hasOption('google_analytics')
) {
let script = document.createElement('script');
script.async = true;
script.src = '//www.googletagmanager.com/gtag/js?id=UA-XXXXXX-XX';
document.head.appendChild(script);
window.cookieConsentLoadedGoogleAnalytics = true;
window.dataLayer = window.dataLayer || [];
function gtag() {dataLayer.push(arguments)}
gtag('js', new Date());
gtag('config', 'UA-XXXXXX-XX', { 'anonymize_ip': true });
}
});
</script>
Overall this looks more like an individual legal question to me rather then an adjustment/feature for this extension... I hope this answer still helps you out.
Merry christmas Daniel
[TASK] Backend modules design refresh
Hi @bfzgaier,
I could'nt reproduce this, will have to investigate further when I'm finding some time. But as you describe the problem this also can be a core issue with the new mariadb features!?
Greetings Daniel
Hi @criwe,
this would propably need a page title provider, I will consider this for the next update.
What kind of title you thought about, maybe "Glossary - [character]"!?
Greetings Daniel