JoomlaPolska / jezyk-J4

Język polski dla Joomla 4
GNU General Public License v2.0
3 stars 5 forks source link

Add link to JED - schema plugins category in schema plugin form #456

Closed joomlapl-bot closed 5 months ago

joomlapl-bot commented 7 months ago

PR w związku ze zmianą oryginału https://github.com/joomla/joomla-cms/pull/42747 Poniżej zmiany w oryginale:

Click to expand the diff! ```diff diff --git a/administrator/language/en-GB/plg_system_schemaorg.ini b/administrator/language/en-GB/plg_system_schemaorg.ini index 1a09bab4e6adf..189a8c2a5f227 100755 --- a/administrator/language/en-GB/plg_system_schemaorg.ini +++ b/administrator/language/en-GB/plg_system_schemaorg.ini @@ -11,6 +11,7 @@ PLG_SYSTEM_SCHEMAORG_BASETYPE_OPTION_PERSON="Person" PLG_SYSTEM_SCHEMAORG_FIELD_SCHEMA_DESCRIPTION="Structured data is a standardised format for organising and representing information on the web. It provides a way to describe the content and meaning of data in a structured manner, making it easier for search engines and other applications to understand and process the information. More information on schema.org." PLG_SYSTEM_SCHEMAORG_FIELD_SCHEMA_DESCRIPTION_NOT_CONFIGURATED="To use the schema.org functionality, you have to configure the plugin first. Please contact an administrator of the page to get it configured." PLG_SYSTEM_SCHEMAORG_FIELD_SCHEMA_DESCRIPTION_NOT_CONFIGURATED_ADMIN="To use the schema.org functionality, you have to configure the plugin first. Please select this link to open the plugin, configure and save." +PLG_SYSTEM_SCHEMAORG_FIELD_SCHEMA_EXTEND_JED_DESC="Need more Schema types? Extend with Schema Plugins from Joomla! Extension Directory." PLG_SYSTEM_SCHEMAORG_FIELD_SCHEMA_LABEL="Schema" PLG_SYSTEM_SCHEMAORG_FIELD_SCHEMA_TYPE_LABEL="Schema Type" PLG_SYSTEM_SCHEMAORG_IMAGE_LABEL="Image" diff --git a/plugins/system/schemaorg/forms/schemaorg.xml b/plugins/system/schemaorg/forms/schemaorg.xml index e012a47479f39..332f2970a1547 100755 --- a/plugins/system/schemaorg/forms/schemaorg.xml +++ b/plugins/system/schemaorg/forms/schemaorg.xml @@ -21,6 +21,14 @@ + + diff --git a/plugins/system/schemaorg/src/Extension/Schemaorg.php b/plugins/system/schemaorg/src/Extension/Schemaorg.php index c0d46f05e8664..c76b395afab8b 100644 --- a/plugins/system/schemaorg/src/Extension/Schemaorg.php +++ b/plugins/system/schemaorg/src/Extension/Schemaorg.php @@ -164,6 +164,9 @@ public function onContentPrepareForm(Model\PrepareFormEvent $event) $form->setFieldAttribute('schemainfo', 'description', $infoText, 'schema'); + $form->setFieldAttribute('extendJed', 'type', 'hidden', 'schema'); + $form->setFieldAttribute('extendJed', 'class', 'hidden', 'schema'); + return; } ```
zwiastunsw commented 5 months ago

język - rozwiązane w 5.0.3