joomla-cms icon indicating copy to clipboard operation
joomla-cms copied to clipboard

[5.1] Load Schema.org only in proper forms

Open n3t opened this issue 1 year ago • 6 comments

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

n3t avatar Feb 16 '24 22:02 n3t

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: img (additional tab is displayed)

After: img (no additional tab is displayed)

Tested sucessfully ✓


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42825.

PhocaCz avatar Feb 17 '24 14:02 PhocaCz

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.

coufalpetr avatar Feb 17 '24 16:02 coufalpetr

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42825.

richard67 avatar Feb 20 '24 13:02 richard67

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.

cybersalt avatar Apr 11 '24 21:04 cybersalt

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.

viocassel avatar May 19 '24 16:05 viocassel

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?

n3t avatar May 29 '24 22:05 n3t

Thx

bembelimen avatar Jul 07 '24 21:07 bembelimen