[5.1] Load Schema.org only in proper forms
Load and display scheme.org form only in contexts that component propagate as available.
Summary of Changes
Modified Schemaorg system plugin to load Schema form only in contexts, that are promoted by component as available.
Testing Instructions
Not testable on core, as com_content and com_contact both has only one edit view, one edit form. Need 3rd party component with support of SchemaorgServiceInterface. Dev version of PhocaCart could be used (not released at the moment). If necessary I could prepare dummy component just for testing this.
Actual result BEFORE applying this Pull Request
If the component provides multiple forms, schema.org form is added to all of its forms, not only to forms declared in getSchemaorgContexts function.
Expected result AFTER applying this Pull Request
Schema org fields are loaded only on proper forms.
Link to documentations
Please select:
-
[ ] Documentation link for docs.joomla.org:
-
[x] No documentation changes for docs.joomla.org needed
-
[ ] Pull Request link for manual.joomla.org:
-
[x] No documentation changes for manual.joomla.org needed
I have tested this item :white_check_mark: successfully on 7d5f44fe8294796c7b72bf439f788ed6ffc98f3e
Hi,
testing with latest Phoca Cart 5 Beta version: https://github.com/PhocaCz/PhocaCart/releases/download/5.0.0Beta/com_phocacart_v5.0.0Beta26.zip
Before:
(additional tab is displayed)
After:
(no additional tab is displayed)
Tested sucessfully ✓
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42825.
I have tested this item :white_check_mark: successfully on 7d5f44fe8294796c7b72bf439f788ed6ffc98f3e
Hi, I have installed the latest Phoca Cart Beta version, after installing this patch I don't see any extra unnecessary tab. So the result is successful.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42825.
RTC
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42825.
I have tested this item :white_check_mark: successfully on 660b142b6636aac036addc195e90901c174821a8
Also used Phocacart in testing - it works.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42825.
I have tested this item :white_check_mark: successfully on 660b142b6636aac036addc195e90901c174821a8
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42825.
Just curious, this PR is marked RTC since 3 months ago, but still not commited, so missing in 5.1.1 release, is there any issue with it? Should I add something?
Thx