Skip to content

Commit

Permalink
Merge branch '5.1-dev' into 5.0-dev-com_tpl_menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Razzo1987 committed Feb 4, 2024
2 parents ed1d51f + 4e6d9ea commit f91f057
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions administrator/language/en-GB/plg_system_schemaorg.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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. <a href=\"https://schema.org\" target=\"_blank\" rel=\"noopener noreferrer\">More information on schema.org</a>."
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 <a href=\"index.php?option=com_plugins&amp;task=plugin.edit&amp;extension_id=%s\" target=\"_blank\">this link to open the plugin</a>, configure and save."
PLG_SYSTEM_SCHEMAORG_FIELD_SCHEMA_EXTEND_JED_DESC="<strong>Need more Schema types?</strong> Extend with <a href=\"https://extensions.joomla.org/category/core-enhancements/schema-plugins\" target=\"_blank\" rel=\"noopener noreferrer\">Schema Plugins from Joomla! Extension Directory</a>."
PLG_SYSTEM_SCHEMAORG_FIELD_SCHEMA_LABEL="Schema"
PLG_SYSTEM_SCHEMAORG_FIELD_SCHEMA_TYPE_LABEL="Schema Type"
PLG_SYSTEM_SCHEMAORG_IMAGE_LABEL="Image"
Expand Down
8 changes: 8 additions & 0 deletions plugins/system/schemaorg/forms/schemaorg.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@
<option value="None">JNONE</option>
</field>

<field
name="extendJed"
type="note"
class="alert alert-info d-block w-100"
parentclass="order-last"
description="PLG_SYSTEM_SCHEMAORG_FIELD_SCHEMA_EXTEND_JED_DESC"
/>

</fieldset>
</fields>
</form>
3 changes: 3 additions & 0 deletions plugins/system/schemaorg/src/Extension/Schemaorg.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit f91f057

Please sign in to comment.