From f7691ed50d75b2a40c86e1e295acdb455ceaf73c Mon Sep 17 00:00:00 2001 From: zero-24 Date: Sat, 25 Feb 2017 11:42:25 +0100 Subject: [PATCH] first step for custom_fields --- .../components/com_weblinks/access.xml | 15 +++++++++++++++ .../components/com_weblinks/config.xml | 11 +++++++++++ .../components/com_weblinks/helpers/weblinks.php | 15 +++++++++++++++ 3 files changed, 41 insertions(+) diff --git a/src/administrator/components/com_weblinks/access.xml b/src/administrator/components/com_weblinks/access.xml index 4cda7d9..1622da5 100644 --- a/src/administrator/components/com_weblinks/access.xml +++ b/src/administrator/components/com_weblinks/access.xml @@ -9,6 +9,7 @@ +
@@ -17,4 +18,18 @@
+
+ + + + + + +
+
+ + + + +
diff --git a/src/administrator/components/com_weblinks/config.xml b/src/administrator/components/com_weblinks/config.xml index 04e0079..924871d 100644 --- a/src/administrator/components/com_weblinks/config.xml +++ b/src/administrator/components/com_weblinks/config.xml @@ -363,6 +363,17 @@ + + + +
get('custom_fields_enable', '1')) + { + JHtmlSidebar::addEntry( + JText::_('JGLOBAL_FIELDS'), + 'index.php?option=com_fields&context=com_weblinks.weblink', + $vName == 'fields.fields' + ); + + JHtmlSidebar::addEntry( + JText::_('JGLOBAL_FIELD_GROUPS'), + 'index.php?option=com_fields&view=groups&context=com_weblinks.weblink', + $vName == 'fields.groups' + ); + } } /**