[4.0] Option to use a menu item for privacy policy.#29024
[4.0] Option to use a menu item for privacy policy.#29024rdeutz merged 10 commits intojoomla:4.0-devfrom
Conversation
|
Apparently, this is not the only privacy consent plugin. I'm going to provide an analogous implementation for the content plugin for contact forms tomorrow. |
|
Updated with the according changes to Content - Confirm Consent. Testing instructions are now updated, too. It's ready to test now! ;-) Stupid question here: Why do we have two plugins for almost the same thing, including two similar, but still different implementations for the form field that displays the modal? |
Co-authored-by: Quy <quy@fluxbb.org> Co-authored-by: SharkyKZ <sharkykz@gmail.com>
Co-authored-by: Quy <quy@fluxbb.org>
|
@Harmageddon a) System - Privacy Consent (registration form) > there is no switch to "Menu Item". b) Content - Confirm Consent (contact form) > successful. See screenshots |
|
I have tested this item ✅ successfully on ea4abe9 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29024. |
|
I have tested this item ✅ successfully on ea4abe9
|
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29024. |
Co-authored-by: Tobias Zulauf <zero-24@users.noreply.github.com>
|
Previous test results are still valid, because the change after the test was only in doc blocks. I've restored the test results in the tracker so the count there and here is correct again. |
|
RTC status is also still valid, see my previous comment. |
|
I have tested this item ✅ successfully on ae56966 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29024. |
|
I did have the menu item SomeOtherArticleMenuItem set to All. Setting that to English I get the English Privacy message in all languages as you described. And the direct menu link only appears in the English page. Back to All languages and the direct menu link leads to the Not Found page in French and German. The Article itself is set to English. So this is really a problem of making sure the Article and Menu Item have compatible language settings and is nothing to do with Privacy Policy. |
|
@ceford Thank you for the clarification! So is this a successful test from your side or do you see any remaining issues with this PR? |
|
Yes - Pass. |
|
@ceford Does your previous mean you have tested this PR completely with success? If so, please mark the test result again at the issue tracker because your previous result has been reset with the last commit. |
|
@zero-24 GH still shows changes requested by your review, but the review comments have been solved. Maybe you can just pass again a neutral review to reset this? |
|
Should be gone now |
|
@zero-24 No, is still there in the box at the bottom. |
|
I have tested this item 🔴 unsuccessfully on e56f475 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29024. |
|
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29024. |
|
The bug you mentioned has been fixed in #29860, merged a few minutes ago. As mentioned there, it was introduced in #29464, which has been merged into 4.0-dev just before the release of beta2. So the bug came with beta2 and was fixed after the release of beta2. I'd therefore ask you to test with beta1 or a current version (nightly starting from tomorrow, Fr 03 July or git from right now). Thank you @ChristineWk for pointing this out! |
|
If I pick an article in English that has no associations in French and German then I get that Article in English in the Privacy Policy dialog in all three languages. Good! If I pick the menu item that points to that article, also without associations in French and German, then I only get that Article in English in the Privacy Policy dialog. In French and German I get the dialog with a 404 not found page. And it is a big page with all of the modules in left and right columns. I accept that that could be left as a User education problem but it would be better if there were a technical solution. Otherwise the normal behaviour works fine. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29024. |
|
Like I mentioned above, the menu item should be set to English in your second case as well. Is this the case? |
|
Yes, it works properly with the menu item set to English. One more question: why is this plugin in the System group instead of the Privacy group? This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29024. |
|
I have tested this item ✅ successfully on e56f475 https://docs.joomla.org/Chunk4x:Extensions_Plugin_Manager_Edit_System_Group#System_-_Privacy_Consent And there drawn attention to multilingual associations. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29024. |
|
Thank you for your tests and the effort on the documentation! :-) |
|
I have tested this item ✅ successfully on dc39f39 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29024. |
|
I have tested this item ✅ successfully on dc39f39 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29024. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29024. |
|
@wilsonge Anything which keeps this RTC PR from being merged? Does it count as "new feauture" and so has to go into 4.1? |

This PR is based on a feature request brought up by user fire67 on the German forum: https://forum.joomla.de/thread/11738-plugin-inhalt-datenschutzerkl%C3%A4rung/
Apparently, some page builders like SP PageBuilder don't register their "articles" as real Joomla! articles. If you create your privacy policy using such a page builder (might apply to some CCK extensions, too), you can't choose it in the privacy consent plugin, because there, only articles are available.
Summary of Changes
This PR adds a menu item parameter to plg_system_privacyconsent and plg_content_confirmconsent that can be used instead of the article parameter, and a parameter to choose between the two.
Testing Instructions
At least one test on a multilingual site would be very welcome. I replicated the mechanism that chooses the associated article in the respective language, for menu items. It works on my small local setup. But as I'm no expert in multilingual sites, I'd be happy if someone with more expertise could check if it works as expected.
You might want to check if the privacy links work for all settings with SEO URLs enabled and disabled.
Documentation Changes Required
Should be documented at https://docs.joomla.org/J3.x:Privacy (or the J4 version of that?).
Additional Notes
I noticed that the full
$articleobject including link, alias, id, catid and language, is passed to the layout, but only the link is used there (at least in core). Should I do the same for the menu item, so overrides could access further information or leave it as it is?