Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.1] Implement Schema.org Product type plugin #42710

Closed
wants to merge 12 commits into from
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INSERT INTO `#__extensions` (`package_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `locked`, `manifest_cache`, `params`, `custom_data`, `ordering`, `state`) VALUES
(0, 'plg_schemaorg_product', 'plugin', 'product', 'schemaorg', 0, 1, 1, 0, 0, '', '{}', '', 0, 0);
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INSERT INTO "#__extensions" ("package_id", "name", "type", "element", "folder", "client_id", "enabled", "access", "protected", "locked", "manifest_cache", "params", "custom_data", "ordering", "state") VALUES
(0, 'plg_schemaorg_product', 'plugin', 'product', 'schemaorg', 0, 1, 1, 0, 0, '', '{}', '', 0, 0);
39 changes: 39 additions & 0 deletions administrator/language/en-GB/plg_schemaorg_product.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
; Joomla! Project
; (C) 2024 Open Source Matters, Inc. <https://www.joomla.org>
; License GNU General Public License version 2 or later; see LICENSE.txt
; Note : All ini files need to be saved as UTF-8

PLG_SCHEMAORG_PRODUCT="Schema.org - Product"
PLG_SCHEMAORG_PRODUCT_DESCRIPTION_LABEL="More information on the Schema.org Product Type can be found at <a href=\"https://schema.org/Product\" target=\"_blank\" rel=\"noopener noreferrer\">https://schema.org/Product</a>"
PLG_SCHEMAORG_PRODUCT_FIELD_ADDRESS_LABEL="Address"
krileon marked this conversation as resolved.
Show resolved Hide resolved
PLG_SCHEMAORG_PRODUCT_FIELD_BRAND_LABEL="Brand"
PLG_SCHEMAORG_PRODUCT_FIELD_CATEGORY_LABEL="Category"
PLG_SCHEMAORG_PRODUCT_FIELD_COLOR_LABEL="Color"
PLG_SCHEMAORG_PRODUCT_FIELD_CURRENCY_LABEL="Currency"
PLG_SCHEMAORG_PRODUCT_FIELD_DATE_PRODUCTION_LABEL="Date Produced"
PLG_SCHEMAORG_PRODUCT_FIELD_DATE_RELEASE_LABEL="Date Released"
PLG_SCHEMAORG_PRODUCT_FIELD_DEPTH_LABEL="Depth"
PLG_SCHEMAORG_PRODUCT_FIELD_DESCRIPTION_LABEL="Description"
PLG_SCHEMAORG_PRODUCT_FIELD_EMAIL_LABEL="Email"
PLG_SCHEMAORG_PRODUCT_FIELD_GENERIC_FIELD_LABEL="Generic Field"
PLG_SCHEMAORG_PRODUCT_FIELD_GENERIC_TITLE_LABEL="Title"
PLG_SCHEMAORG_PRODUCT_FIELD_GENERIC_VALUE_LABEL="Value"
PLG_SCHEMAORG_PRODUCT_FIELD_HEIGHT_LABEL="Height"
PLG_SCHEMAORG_PRODUCT_FIELD_IMAGE_LABEL="Image"
PLG_SCHEMAORG_PRODUCT_FIELD_LOCALITY_LABEL="Locality"
PLG_SCHEMAORG_PRODUCT_FIELD_LOGO_LABEL="Logo"
PLG_SCHEMAORG_PRODUCT_FIELD_MANUFACTURER_LABEL="Manufacturer"
PLG_SCHEMAORG_PRODUCT_FIELD_MATERIAL_LABEL="Material"
PLG_SCHEMAORG_PRODUCT_FIELD_MODEL_LABEL="Model"
PLG_SCHEMAORG_PRODUCT_FIELD_NAME_LABEL="Name"
PLG_SCHEMAORG_PRODUCT_FIELD_OFFERS_LABEL="Price"
PLG_SCHEMAORG_PRODUCT_FIELD_ORGANIZATION_LABEL="Organization"
PLG_SCHEMAORG_PRODUCT_FIELD_POSTAL_CODE_LABEL="Postal Code"
PLG_SCHEMAORG_PRODUCT_FIELD_SIZE_LABEL="Size"
PLG_SCHEMAORG_PRODUCT_FIELD_SKU_LABEL="SKU"
PLG_SCHEMAORG_PRODUCT_FIELD_STREET_ADDRESS_LABEL="Street Address"
PLG_SCHEMAORG_PRODUCT_FIELD_TYPE_LABEL="Type"
PLG_SCHEMAORG_PRODUCT_FIELD_URL_LABEL="Url"
PLG_SCHEMAORG_PRODUCT_FIELD_VALUE_LABEL="Value"
PLG_SCHEMAORG_PRODUCT_FIELD_WIDTH_LABEL="Width"
PLG_SCHEMAORG_PRODUCT_XML_DESCRIPTION="Adds Product as a new schema type in existing schemas."
7 changes: 7 additions & 0 deletions administrator/language/en-GB/plg_schemaorg_product.sys.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
; Joomla! Project
; (C) 2024 Open Source Matters, Inc. <https://www.joomla.org>
; License GNU General Public License version 2 or later; see LICENSE.txt
; Note : All ini files need to be saved as UTF-8

PLG_SCHEMAORG_PRODUCT="Schema.org - Product"
PLG_SCHEMAORG_PRODUCT_XML_DESCRIPTION="Adds Product as a new schema type in existing schemas."
3 changes: 2 additions & 1 deletion installation/sql/mysql/base.sql
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,8 @@ INSERT INTO `#__extensions` (`package_id`, `name`, `type`, `element`, `folder`,
(0, 'plg_schemaorg_jobposting', 'plugin', 'jobposting', 'schemaorg', 0, 1, 1, 0, 0, '', '{}', '', 5, 0),
(0, 'plg_schemaorg_organization', 'plugin', 'organization', 'schemaorg', 0, 1, 1, 0, 0, '', '{}', '', 6, 0),
(0, 'plg_schemaorg_person', 'plugin', 'person', 'schemaorg', 0, 1, 1, 0, 0, '', '{}', '', 7, 0),
(0, 'plg_schemaorg_recipe', 'plugin', 'recipe', 'schemaorg', 0, 1, 1, 0, 0, '', '{}', '', 8, 0),
(0, 'plg_schemaorg_product', 'plugin', 'product', 'schemaorg', 0, 1, 1, 0, 0, '', '{}', '', 8, 0),
(0, 'plg_schemaorg_recipe', 'plugin', 'recipe', 'schemaorg', 0, 1, 1, 0, 0, '', '{}', '', 9, 0),
(0, 'plg_system_accessibility', 'plugin', 'accessibility', 'system', 0, 0, 1, 0, 1, '', '{}', '', 1, 0),
(0, 'plg_system_actionlogs', 'plugin', 'actionlogs', 'system', 0, 1, 1, 0, 1, '', '{}', '', 2, 0),
(0, 'plg_system_cache', 'plugin', 'cache', 'system', 0, 0, 1, 0, 1, '', '{"browsercache":"0","cachetime":"15"}', '', 3, 0),
Expand Down
3 changes: 2 additions & 1 deletion installation/sql/postgresql/base.sql
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,8 @@ INSERT INTO "#__extensions" ("package_id", "name", "type", "element", "folder",
(0, 'plg_schemaorg_jobposting', 'plugin', 'jobposting', 'schemaorg', 0, 1, 1, 0, 0, '', '{}', '', 5, 0),
(0, 'plg_schemaorg_organization', 'plugin', 'organization', 'schemaorg', 0, 1, 1, 0, 0, '', '{}', '', 6, 0),
(0, 'plg_schemaorg_person', 'plugin', 'person', 'schemaorg', 0, 1, 1, 0, 0, '', '{}', '', 7, 0),
(0, 'plg_schemaorg_recipe', 'plugin', 'recipe', 'schemaorg', 0, 1, 1, 0, 0, '', '{}', '', 8, 0),
(0, 'plg_schemaorg_product', 'plugin', 'product', 'schemaorg', 0, 1, 1, 0, 0, '', '{}', '', 8, 0),
(0, 'plg_schemaorg_recipe', 'plugin', 'recipe', 'schemaorg', 0, 1, 1, 0, 0, '', '{}', '', 9, 0),
(0, 'plg_system_accessibility', 'plugin', 'accessibility', 'system', 0, 0, 1, 0, 1, '', '{}', '', 1, 0),
(0, 'plg_system_actionlogs', 'plugin', 'actionlogs', 'system', 0, 1, 1, 0, 1, '', '{}', '', 2, 0),
(0, 'plg_system_cache', 'plugin', 'cache', 'system', 0, 0, 1, 0, 1, '', '{"browsercache":"0","cachetime":"15"}', '', 3, 0),
Expand Down
1 change: 1 addition & 0 deletions libraries/src/Extension/ExtensionHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ class ExtensionHelper
['plugin', 'jobposting', 'schemaorg', 0],
['plugin', 'organization', 'schemaorg', 0],
['plugin', 'person', 'schemaorg', 0],
['plugin', 'product', 'schemaorg', 0],
['plugin', 'recipe', 'schemaorg', 0],

// Core plugin extensions - system
Expand Down
Loading