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

Custom fields #11833

Merged
merged 331 commits into from
Oct 29, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
331 commits
Select commit Hold shift + click to select a range
790cce2
Update gallery.xml
brianteeman Apr 5, 2016
8f399ad
Merge pull request #59 from joomla-projects/options
laoneo Apr 5, 2016
f7b1b26
Merge pull request #60 from brianteeman/gallery
laoneo Apr 5, 2016
42b93b6
Update fields.php
brianteeman Apr 5, 2016
a669d30
Update internal.php
brianteeman Apr 5, 2016
3b214ba
Update field.php
brianteeman Apr 5, 2016
ccc1301
Update dprules.php
brianteeman Apr 5, 2016
e142f58
Update section.php
brianteeman Apr 5, 2016
69a9857
Update base.php
brianteeman Apr 5, 2016
e3cdc08
Update view.html.php
brianteeman Apr 5, 2016
d062c8a
Update view.html.php
brianteeman Apr 5, 2016
5248cf9
Update render.php
brianteeman Apr 5, 2016
28d1366
Update modal_article.php
brianteeman Apr 5, 2016
316c123
Update sql.php
brianteeman Apr 5, 2016
2b7290b
Update fields.php
brianteeman Apr 5, 2016
09f1aec
Remove commented debug code
brianteeman Apr 5, 2016
e8b9e55
Update fields.php
brianteeman Apr 5, 2016
e4007f9
Merge pull request #64 from brianteeman/debug
laoneo Apr 5, 2016
e4e73ba
#14 fixed Joomla Coding Standards and added function dock blocks code
pratiksid007 Apr 6, 2016
809b9a0
#14 fixed Joomla Conding Standards and added function dock blocks
pratiksid007 Apr 6, 2016
90eb44e
#14 Fixed class dock block mistake
pratiksid007 Apr 6, 2016
11c79e1
Merge pull request #66 from RonakParmar/custom-fields
wilsonge Apr 6, 2016
4eebc42
we did not require this any more
zero-24 Apr 6, 2016
7e7d8df
Merge pull request #68 from zero-24/patch-2
wilsonge Apr 6, 2016
6c36571
#14 fixed Joomla Coding Standards and added function dock block in he…
pratiksid007 Apr 7, 2016
7fbff05
#14 Fixed only Joomla Coding Standards in FieldsHelper file
pratiksid007 Apr 7, 2016
8daa741
#14 removed where function, added dock blocks and fixed dock bocks co…
pratiksid007 Apr 7, 2016
aaf6c78
#14 formatted as the function doc blocks
pratiksid007 Apr 8, 2016
eaa709b
#14 formatted as the function doc blocks
pratiksid007 Apr 8, 2016
4e43d46
Merge remote-tracking branch 'custom-fields/3.6.x' into custom-fields
laoneo Apr 11, 2016
8dd9e50
Check the active menu correct
laoneo Apr 11, 2016
c87b689
Move the label field to the options tab
laoneo Apr 12, 2016
0e4169d
Label has it's own field and must not stay in params
laoneo Apr 14, 2016
0bf399f
Backport from Digital-Peak/DPFields#32
laoneo Apr 19, 2016
3b25525
Fix the save and copy action
laoneo Apr 19, 2016
5916e84
Store data on reload
laoneo Apr 19, 2016
ba79903
Don't add always the All language to the query
laoneo Apr 21, 2016
d2cac48
Count the items in the category manager from com_fields
laoneo Apr 21, 2016
173574b
Merge branch 'comments' of https://github.com/brianteeman/custom-fields
laoneo Apr 22, 2016
de39daf
Merge branch 'brianteeman-comments' into custom-fields
laoneo Apr 22, 2016
f484b5c
Corrected colspan when fields are assigned to a language
laoneo Apr 22, 2016
170b15d
Merge branch '3.6.x' into custom-fields
laoneo Apr 22, 2016
235b73c
#14 Fixed conflict
pratiksid007 Apr 22, 2016
869b0a7
#14 fixed conflict
pratiksid007 Apr 22, 2016
6dbf05c
Don't save the All category
laoneo Apr 25, 2016
568cea5
Minor language updates
justinherrin Apr 26, 2016
2d33bb4
Fix "Show On" tooltip's description
justinherrin Apr 26, 2016
8c1b800
Merge pull request #78 from justinherrin/patch-2
laoneo Apr 26, 2016
962d5da
Merge pull request #79 from justinherrin/patch-1
laoneo Apr 26, 2016
7394178
Don't hardcode com_content.article
laoneo Apr 26, 2016
aeac2e9
Load the types form when the data is an array
laoneo Apr 26, 2016
58feb3f
Create the links correct for the count item feature
laoneo Apr 26, 2016
c8421df
Show the value from com_fields instead of the the users helper
laoneo Apr 26, 2016
bf78cb3
Merge pull request #69 from RonakParmar/custom-fields
laoneo Apr 30, 2016
43cf96d
Set the language correct on the fields cache
laoneo May 3, 2016
d29ef3e
Removed string conversion error
laoneo May 6, 2016
aec1b72
Changed links to 3.7
laoneo May 6, 2016
872ee03
Remove legacy DPFields code
laoneo May 17, 2016
4c756bc
Get data from state correctly
laoneo May 17, 2016
4773648
Add joins to the com_fields in search plugin (#83)
laoneo May 18, 2016
5b3162a
Add new core rule core.edit.value (#75)
laoneo May 23, 2016
9c59224
Add 'onFieldBeforePrepare' and 'onFieldAfterPrepare' events
williamsandy May 31, 2016
cc45d4f
Merge remote-tracking branch 'upstream/3.6.x' into custom-fields
laoneo May 31, 2016
18496c0
Rename "Field Category" to "Field Group"
laoneo Jun 2, 2016
165a58e
Add option to disable custom fields per component
laoneo Jun 4, 2016
5e3a87f
Use select box to define the images directory
laoneo Jun 4, 2016
2dc40ae
Truncate correctly
laoneo Jun 4, 2016
6b02bda
Change description field to plain textarea
laoneo Jun 6, 2016
5c54944
Parameters are more clear and improved comment
laoneo Jun 6, 2016
54f7d57
onFieldBeforePrepare and onFieldAfterPrepare events now triggered eve…
williamsandy Jun 7, 2016
2b4a5b0
Cast before access
laoneo Jun 8, 2016
2c85ef4
Create params even when they are empty
laoneo Jun 8, 2016
b98acc3
Add com_fields menu entries on back end
laoneo Jun 8, 2016
d1a70db
Extract the context correctly
laoneo Jun 13, 2016
0f5ee81
Add custom fields for contact
laoneo Jun 13, 2016
107658a
Add inline group create
laoneo Jun 13, 2016
711e8bb
Add simple context mapping
laoneo Jun 15, 2016
beb9d6d
Dont assign a not existing category when a field is saved with no catid
laoneo Jun 15, 2016
297f771
Rename string with group and not category
laoneo Jun 15, 2016
397f785
Category strings should be named Field Groups
laoneo Jun 15, 2016
03e48dc
Show the fields on the blog listing
laoneo Jun 15, 2016
8381e46
Installer crashes somehow
laoneo Jun 18, 2016
9f369c3
Merge the types set up into JFormField (#104)
laoneo Jun 19, 2016
41bd1f6
Removing mustache, will be replaced later with a new parser
laoneo Jun 19, 2016
cbf798a
Fixing composer setup, reverting to 3.6.x branch
laoneo Jun 19, 2016
1914958
Fixing code style errors
laoneo Jun 19, 2016
b9fc763
Rename upgrade file to 3.7
laoneo Jun 20, 2016
92f95e7
Strip slashes from description
laoneo Jun 20, 2016
fd94865
Removing Simplepie from the database installer script
laoneo Jun 20, 2016
ea6963d
Show field group description in form
laoneo Jun 21, 2016
3d883e6
List field changed key to value and value to name
laoneo Jun 21, 2016
c896a70
Use the first category as field filter when creating an article
laoneo Jun 21, 2016
9070e2e
Dont show a user field on the front end
laoneo Jun 21, 2016
4947b1b
Add always the fields path when adding the custom fields
laoneo Jun 21, 2016
56ac05c
Added hint (placeholder) option
laoneo Jun 21, 2016
84a28df
Correct redirect after checkin action
laoneo Jun 21, 2016
039f9f8
Check for group access levels when getting the fields (#153)
laoneo Jun 21, 2016
b1f4138
Consider field group state
laoneo Jun 21, 2016
de43e86
Added missing language strings
laoneo Jun 21, 2016
1d4cb70
JArrayHelper => ArrayHelper
zero-24 Jun 24, 2016
0df4f20
Merge pull request #159 from zero-24/arrayhelper
laoneo Jun 25, 2016
bbe7551
reduce model method (#160)
zero-24 Jun 25, 2016
fb6ad23
Fixing permission inheritance to edit the value of a field in the for…
laoneo Jun 26, 2016
e3b20a2
Correct path for parameters folder when not in Joomla libraries
laoneo Jun 26, 2016
19c5016
Merge remote-tracking branch 'upstream/3.6.x' into custom-fields
laoneo Jun 28, 2016
845583a
Type selection (#162)
laoneo Jun 30, 2016
8b34946
Display class attributes (#143)
laoneo Jun 30, 2016
f2954c5
User home (#161)
laoneo Jun 30, 2016
c267bf2
Add new context for com_contact for contact form fields (#115)
laoneo Jun 30, 2016
0479993
Use the correct variable name
laoneo Jul 8, 2016
bdc6fee
Show the all label when no category is assigned
laoneo Jul 21, 2016
ffa24e0
Don't set 0 as default hint when not present
laoneo Jul 21, 2016
d1bc793
Fix Sniffer Whitespace errors
bembelimen Jul 26, 2016
13bdebc
Fix Sniffer Whitespace errors (#167)
bembelimen Jul 26, 2016
8003784
Merge branch 'custom-fields' of https://github.com/joomla-projects/cu…
bembelimen Jul 26, 2016
35f26a8
Cleanup field model
bembelimen Jul 26, 2016
fe5d6da
Merge pull request #168 from bembelimen/cleanup
wilsonge Jul 26, 2016
9f38ddf
Support fields plugins
laoneo Jul 28, 2016
bd4a556
Add gallery plugin
laoneo Jul 28, 2016
7a97fdc
Moved since tag to 3.7
laoneo Jul 28, 2016
226ea04
Merge remote-tracking branch 'upstream/3.7.x' into custom-fields
laoneo Jul 28, 2016
659b073
Merge remote-tracking branch 'upstream/3.7.x' into custom-fields
laoneo Aug 29, 2016
5296505
Some brushup
laoneo Aug 29, 2016
6332712
Update controller.php
zero-24 Aug 30, 2016
6bf5c15
Update field.php
zero-24 Aug 30, 2016
ee4f9f9
Update fields.php
zero-24 Aug 30, 2016
a9f3dc0
Update controller.php
zero-24 Aug 30, 2016
feb1c33
Update fields.php
zero-24 Aug 30, 2016
0b097ba
Update internal.php
zero-24 Aug 30, 2016
73f3f70
Update fields.php
zero-24 Aug 30, 2016
96b32cd
Update fields.xml
zero-24 Aug 30, 2016
8500d20
Update field.php
zero-24 Aug 30, 2016
253778e
Update fields.php
zero-24 Aug 30, 2016
8921f5a
Update type.php
zero-24 Aug 30, 2016
8ac534e
Update section.php
zero-24 Aug 30, 2016
a3dc04b
Update field.php
zero-24 Aug 30, 2016
4a172ed
Update field.xml
zero-24 Aug 30, 2016
f94c1d4
Update filter_fields.xml
zero-24 Aug 30, 2016
46e9d1c
Update field.php
zero-24 Aug 30, 2016
83eb619
Update view.html.php
zero-24 Aug 30, 2016
ce7a05c
Update edit.php
zero-24 Aug 30, 2016
3d95ec2
Update modal_options.php
zero-24 Aug 30, 2016
7e96168
Update view.html.php
zero-24 Aug 30, 2016
0a0037e
Update default.php
zero-24 Aug 30, 2016
31b3c92
Update default_batch_body.php
zero-24 Aug 30, 2016
0bc8d83
Update modal.php
zero-24 Aug 30, 2016
80f0db4
Update field.xml
zero-24 Aug 30, 2016
d52ed26
Update en-GB.com_fields.sys.ini
zero-24 Aug 30, 2016
fbc59ce
Update en-GB.com_fields.ini
zero-24 Aug 30, 2016
5b6673f
Update en-GB.plg_fields_gallery.ini
zero-24 Aug 30, 2016
5c357ea
Update en-GB.plg_fields_gallery.sys.ini
zero-24 Aug 30, 2016
6767e4f
Update en-GB.plg_system_fields.ini
zero-24 Aug 30, 2016
dae8552
Update en-GB.plg_system_fields.sys.ini
zero-24 Aug 30, 2016
d464d79
Update modal_article.php
zero-24 Aug 30, 2016
85ea79d
Update controller.php
zero-24 Aug 30, 2016
242ceb3
Update field.php
zero-24 Aug 30, 2016
6a24e11
Update default_custom.php
zero-24 Aug 30, 2016
13e7ac4
Update captcha.php
zero-24 Aug 30, 2016
875e9ba
Update editor.php
zero-24 Aug 30, 2016
689af5f
Update media.php
zero-24 Aug 30, 2016
344706b
Update user.php
zero-24 Aug 30, 2016
4a470a1
Update editor.xml
zero-24 Aug 30, 2016
3923429
Update media.xml
zero-24 Aug 30, 2016
ced6ed5
Update user.xml
zero-24 Aug 30, 2016
0cded46
Update usergrouplist.xml
zero-24 Aug 30, 2016
99027c8
Update abstractlist.php
zero-24 Aug 30, 2016
51ab3a5
Update domfieldinterface.php
zero-24 Aug 30, 2016
1171ad8
Update field.php
zero-24 Aug 30, 2016
561e3f8
Update email.php
zero-24 Aug 30, 2016
e913bcc
Update file.php
zero-24 Aug 30, 2016
ac08f0b
Update imagelist.php
zero-24 Aug 30, 2016
7034b6b
Update sql.php
zero-24 Aug 30, 2016
2fe2a1f
Update tel.php
zero-24 Aug 30, 2016
cd9730e
Update textarea.php
zero-24 Aug 30, 2016
45e75c0
Update url.php
zero-24 Aug 30, 2016
72e2b8b
Update calendar.xml
zero-24 Aug 30, 2016
1dfd5f5
Update checkboxes.xml
zero-24 Aug 30, 2016
3f8178b
Update imagelist.xml
zero-24 Aug 30, 2016
13f5676
Update integer.xml
zero-24 Aug 30, 2016
674bed5
Update list.xml
zero-24 Aug 30, 2016
f0c9e01
Update radio.xml
zero-24 Aug 30, 2016
08cc246
Update sql.xml
zero-24 Aug 30, 2016
1d1d1cc
Update textarea.xml
zero-24 Aug 30, 2016
9001be2
Update url.xml
zero-24 Aug 30, 2016
5a1faae
Update gallery.xml
zero-24 Aug 30, 2016
938e9e7
plugin
zero-24 Aug 30, 2016
4aef91c
plugin2
zero-24 Aug 30, 2016
25d9f13
typo
zero-24 Aug 31, 2016
5a22ea8
Merge pull request #2 from zero-24/patch-16
laoneo Aug 31, 2016
cfc9094
Change to uft8mb4
laoneo Aug 31, 2016
4afbd11
Add new extensions to the script file
laoneo Aug 31, 2016
985081a
Revert merge conflict composer changes
laoneo Aug 31, 2016
cd8d550
No needed changes
laoneo Aug 31, 2016
3492d04
Library form fields should be unaware of com_fields
laoneo Aug 31, 2016
ef51aab
Default to https
laoneo Aug 31, 2016
763ed76
Order the tables correct
laoneo Aug 31, 2016
7e86739
Cleanup language strings
laoneo Aug 31, 2016
cba6d2a
Code errors from cleanup
laoneo Aug 31, 2016
0e9780a
Remove tags support
laoneo Aug 31, 2016
268ec0f
Add category filter
laoneo Aug 31, 2016
1331332
Display fielg group label when editing a group
laoneo Aug 31, 2016
87637ee
Display all fields which are assigned to all languages correct
laoneo Aug 31, 2016
273f343
Don't show fields on categories as it is not ready yet
laoneo Aug 31, 2016
92350a0
Update fields.php
zero-24 Aug 31, 2016
0bc5168
Don't transofrm the category name
laoneo Aug 31, 2016
bb7cafc
Merge pull request #3 from zero-24/patch-16
laoneo Aug 31, 2016
be46617
Correct quote name function used
laoneo Aug 31, 2016
5354e3e
Revert "Display fielg group label when editing a group"
laoneo Aug 31, 2016
9751f5f
Disable tags on custom field groups
laoneo Aug 31, 2016
76510ad
Don't include category state in filter on back end
laoneo Aug 31, 2016
516c5c8
Remove debug code
laoneo Aug 31, 2016
089e4b8
CS fix
laoneo Aug 31, 2016
1a8f3ec
Shortening the line length
laoneo Sep 1, 2016
d6a1f19
Install SQL files for postgres
laoneo Sep 5, 2016
a758e36
Use JDatabaseQuery
laoneo Sep 5, 2016
e779c91
Merge remote-tracking branch 'upstream/3.7.x' into custom-fields
Sep 5, 2016
a54f0b7
Option to show the user custom fields on the front on the contact view
laoneo Sep 6, 2016
9c2719f
Merge remote-tracking branch 'upstream/3.7.x' into custom-fields
laoneo Sep 6, 2016
4a129d4
Merge remote-tracking branch 'upstream/3.7.x' into custom-fields
laoneo Sep 7, 2016
729e0b9
Merge remote-tracking branch 'upstream/3.7.x' into custom-fields
Sep 9, 2016
83a5545
Comment for item_id table column
laoneo Sep 12, 2016
40f789b
Merge remote-tracking branch 'upstream/3.7.x' into custom-fields
laoneo Sep 12, 2016
c16bde0
Remove class for textareas
laoneo Sep 13, 2016
3a0472b
Fix no menu item pages giving wrong links (#12020)
wilsonge Sep 13, 2016
0bb9972
[plg_system_logout] Load language files only when needed (#11736)
andrepereiradasilva Sep 14, 2016
95af559
Adding Options Button (#12033)
Sep 16, 2016
5608bac
fix paths (#12032)
Sep 16, 2016
deb439a
[com_banners] - publishing time does not honor timezone (#11978)
alikon Sep 16, 2016
78f8d2c
Fix routing for non-sef menu items with Modern Routing (#12021)
wilsonge Sep 16, 2016
10c2cf0
Order stylesheet attributes the same as link attributes (#12052)
mbabker Sep 16, 2016
fe6abe9
use joomla-projects docker
rdeutz Sep 17, 2016
e943e8e
Phase out JString calls in libraries (#12058)
mbabker Sep 17, 2016
11d7b17
Admin app - JString -> StringHelper (#12056)
mbabker Sep 17, 2016
e2be16c
Site app & Plugins - JString -> StringHelper (#12057)
mbabker Sep 17, 2016
2fdf4e9
New Feature, Multilanguage: Add the possibility of displaying associa…
infograf768 Sep 18, 2016
d0df17a
[com_contact] - moved the captchaEnabled var from default to view (#1…
alikon Sep 18, 2016
3eb503e
[JAccess] Improve ACL asset preloading performance/memory consumption…
andrepereiradasilva Sep 18, 2016
4606053
Session interaction refactoring (#10905)
mbabker Sep 18, 2016
7382e89
[com_content] - add articles ordering by votes, ratings (#11225)
alikon Sep 18, 2016
783581d
Add setDocumentTitle() function in JViewLegacy (#11399)
OctavianC Sep 18, 2016
cf5e772
Label: Users Options: Login name > Username (#12073)
pe7er Sep 19, 2016
5d58d19
correct/add quotename (#12070)
andrepereiradasilva Sep 19, 2016
ff03d82
Update .travis.yml (#12079)
zero-24 Sep 19, 2016
da29cee
JED turned to https (#12076)
Sep 19, 2016
e3145d7
Add vote order check
laoneo Sep 20, 2016
d574748
Merge remote-tracking branch 'upstream/3.7.x' into custom-fields
laoneo Sep 20, 2016
8760a7c
Merge remote-tracking branch 'upstream/3.7.x' into custom-fields
Sep 21, 2016
4d44c25
[a11y] Protostar back to top (#12446)
brianteeman Oct 25, 2016
6f38c24
Merge branch '3.7.x' into custom-fields
laoneo Oct 29, 2016
03a6ac3
Added missing com_fields component from last merge
laoneo Oct 29, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions administrator/components/com_admin/script.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ protected function updateManifestCaches()
array('component', 'com_contenthistory', '', 1),
array('component', 'com_postinstall', '', 1),
array('component', 'com_joomlaupdate', '', 1),
array('component', 'com_fields', '', 1),

// Libraries
array('library', 'phputf8', '', 0),
Expand Down Expand Up @@ -349,6 +350,8 @@ protected function updateManifestCaches()
array('plugin', 'phpversioncheck', 'quickicon', 0),
array('plugin', 'menu', 'editors-xtd', 0),
array('plugin', 'contact', 'editors-xtd', 0),
array('plugin', 'fields', 'system', 0),
array('plugin', 'gallery', 'fields', 0),

// Templates
array('template', 'beez3', '', 0),
Expand Down Expand Up @@ -1449,7 +1452,7 @@ public function deleteUnexistingFiles()
'/media/editors/tinymce/plugins/compat3x/editable_selects.js',
'/media/editors/tinymce/plugins/compat3x/form_utils.js',
'/media/editors/tinymce/plugins/compat3x/mctabs.js',
'/media/editors/tinymce/plugins/compat3x/tiny_mce_popup.js',
'/media/editors/tinymce/plugins/compat3x/tiny_mce_popup.js',
'/media/editors/tinymce/plugins/compat3x/validate.js',
'/libraries/vendor/symfony/yaml/Symfony/Component/Yaml/Dumper.php',
'/libraries/vendor/symfony/yaml/Symfony/Component/Yaml/Escaper.php',
Expand Down Expand Up @@ -1695,7 +1698,8 @@ public function updateAssets()
'com_tags',
'com_contenthistory',
'com_ajax',
'com_postinstall'
'com_postinstall',
'com_fields',
);

foreach ($newComponents as $component)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
CREATE TABLE IF NOT EXISTS `#__fields` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`asset_id` int(10) NOT NULL DEFAULT 0,
`context` varchar(255) NOT NULL DEFAULT '',
`catid` int(10) NOT NULL DEFAULT 0,
`assigned_cat_ids` varchar(255) NOT NULL DEFAULT '',
`title` varchar(255) NOT NULL DEFAULT '',
`alias` varchar(255) NOT NULL DEFAULT '',
`label` varchar(255) NOT NULL DEFAULT '',
`default_value` text NOT NULL DEFAULT '',
`type` varchar(255) NOT NULL DEFAULT 'text',
`options` varchar(255) NOT NULL DEFAULT '',
`note` varchar(255) NOT NULL DEFAULT '',
`description` text NOT NULL,
`state` tinyint(1) NOT NULL DEFAULT '0',
`required` tinyint(1) NOT NULL DEFAULT '0',
`checked_out` int(11) NOT NULL DEFAULT '0',
`checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`ordering` int(11) NOT NULL DEFAULT '0',
`params` text NOT NULL,
`fieldparams` text NOT NULL,
`attributes` text NOT NULL,
`language` char(7) NOT NULL DEFAULT '',
`created_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_user_id` int(10) unsigned NOT NULL DEFAULT '0',
`created_by_alias` varchar(255) NOT NULL DEFAULT '',
`version` int(10) unsigned NOT NULL DEFAULT '0',
`modified_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_by` int(10) unsigned NOT NULL DEFAULT '0',
`publish_up` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`publish_down` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`access` int(11) NOT NULL DEFAULT '1',
`hits` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `idx_checkout` (`checked_out`),
KEY `idx_state` (`state`),
KEY `idx_created_user_id` (`created_user_id`),
KEY `idx_access` (`access`),
KEY `idx_context` (`context`),
KEY `idx_language` (`language`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;

CREATE TABLE IF NOT EXISTS `#__fields_values` (
`field_id` int(10) unsigned NOT NULL,
`context` varchar(255) NOT NULL,
`item_id` varchar(255) NOT NULL COMMENT 'Allow references to items which have strings as ids, eg. none db systems.',
`value` text NOT NULL DEFAULT '',
KEY (`field_id`),
KEY (`context`),
KEY (`item_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;

INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES
(33, 'com_fields', 'component', 'com_fields', '', 1, 1, 1, 0, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0);
INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES
(461, 'plg_system_fields', 'plugin', 'fields', 'system', 0, 1, 1, 0, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0);
INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES
(462, 'plg_fields_gallery', 'plugin', 'gallery', 'fields', 0, 1, 1, 0, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0);
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
--
-- Table: #__fields
--
CREATE TABLE "#__fields" (
"id" serial NOT NULL,
"asset_id" bigint DEFAULT 0 NOT NULL,
"context" varchar(255) DEFAULT '' NOT NULL,
"catid" bigint DEFAULT 0 NOT NULL,
"assigned_cat_ids" varchar(255) DEFAULT '' NOT NULL,
"title" varchar(255) DEFAULT '' NOT NULL,
"alias" varchar(255) DEFAULT '' NOT NULL,
"label" varchar(255) DEFAULT '' NOT NULL,
"default_value" text DEFAULT '' NOT NULL,
"type" varchar(255) DEFAULT 'text' NOT NULL,
"options" varchar(255) DEFAULT '' NOT NULL,
"note" varchar(255) DEFAULT '' NOT NULL,
"description" text DEFAULT '' NOT NULL,
"state" smallint DEFAULT 0 NOT NULL,
"required" smallint DEFAULT 0 NOT NULL,
"checked_out" integer DEFAULT 0 NOT NULL,
"checked_out_time" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL,
"ordering" bigint DEFAULT 0 NOT NULL,
"params" text DEFAULT '' NOT NULL,
"fieldparams" text DEFAULT '' NOT NULL,
"attributes" text DEFAULT '' NOT NULL,
"language" varchar(7) DEFAULT '' NOT NULL,
"created_time" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL,
"created_user_id" bigint DEFAULT 0 NOT NULL,
"created_by_alias" varchar(255) DEFAULT '' NOT NULL,
"version" bigint DEFAULT 0 NOT NULL,
"modified_time" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL,
"modified_by" bigint DEFAULT 0 NOT NULL,
"publish_up" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL,
"publish_down" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL,
"access" bigint DEFAULT 0 NOT NULL,
"hits" integer DEFAULT 0 NOT NULL,
PRIMARY KEY ("id")
);
CREATE INDEX "#__fields_idx_checked_out" ON "#__fields" ("checked_out");
CREATE INDEX "#__fields_idx_state" ON "#__fields" ("state");
CREATE INDEX "#__fields_idx_created_user_id" ON "#__fields" ("created_user_id");
CREATE INDEX "#__fields_idx_access" ON "#__fields" ("access");
CREATE INDEX "#__fields_idx_context" ON "#__fields" ("context");
CREATE INDEX "#__fields_idx_language" ON "#__fields" ("language");

--
-- Table: #__fields_values
--
CREATE TABLE "#__fields_values" (
"field_id" bigint DEFAULT 0 NOT NULL,
"item_id" varchar(255) DEFAULT '' NOT NULL,
"context" varchar(255) DEFAULT '' NOT NULL,
"value" text DEFAULT '' NOT NULL
);
CREATE INDEX "#__fields_values_idx_field_id" ON "#__fields_values" ("field_id");
CREATE INDEX "#__fields_values_idx_context" ON "#__fields_values" ("context");
CREATE INDEX "#__fields_values_idx_item_id" ON "#__fields_values" ("item_id");

INSERT INTO "#__extensions" ("extension_id", "name", "type", "element", "folder", "client_id", "enabled", "access", "protected", "manifest_cache", "params", "custom_data", "system_data", "checked_out", "checked_out_time", "ordering", "state") VALUES
(33, 'com_fields', 'component', 'com_fields', '', 1, 1, 1, 1, '', '', '', '', 0, '1970-01-01 00:00:00', 0, 0),
(461, 'plg_system_fields', 'plugin', 'fields', 'system', 0, 1, 1, 0, '', '', '', '', 0, '1970-01-01 00:00:00', 0, 0),
(462, 'plg_fields_gallery', 'plugin', 'gallery', 'fields', 0, 1, 1, 0, '', '', '', '', 0, '1970-01-01 00:00:00', 0, 0);

Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,14 @@

defined('JPATH_BASE') or die;

JFormHelper::loadFieldClass('list');

JLoader::register('BannersHelper', JPATH_ADMINISTRATOR . '/components/com_banners/helpers/banners.php');

/**
* Bannerclient Field class for the Joomla Framework.
*
* @since 1.6
*/
class JFormFieldBannerClient extends JFormFieldList
class JFormFieldBannerClient extends JFormAbstractlist
{
/**
* The form field type.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -370,13 +370,19 @@ public function getItems()
*/
public function countItems(&$items, $extension)
{
$parts = explode('.', $extension);
$parts = explode('.', $extension, 2);
$component = $parts[0];
$section = null;

if (count($parts) > 1)
{
$section = $parts[1];

// If the section ends with .fields, then the category belongs to com_fields
if (substr($section, -strlen('.fields')) === '.fields')
{
$component = 'com_fields';
}
}

// Try to find the component helper.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@

use Joomla\Utilities\ArrayHelper;

JFormHelper::loadFieldClass('list');

/**
* Form Field class for the Joomla Framework.
*
* @since 1.6
*/
class JFormFieldCategoryEdit extends JFormFieldList
class JFormFieldCategoryEdit extends JFormAbstractlist
{
/**
* To allow creation of new categories.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@

defined('JPATH_BASE') or die;

JFormHelper::loadFieldClass('list');

/**
* Form Field class for the Joomla Framework.
*
* @since 1.6
*/
class JFormFieldCategoryParent extends JFormFieldList
class JFormFieldCategoryParent extends JFormAbstractlist
{
/**
* The form field type.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
$listOrder = $this->escape($this->state->get('list.ordering'));
$listDirn = $this->escape($this->state->get('list.direction'));
$saveOrder = ($listOrder == 'a.lft' && strtolower($listDirn) == 'asc');
$parts = explode('.', $extension);
$parts = explode('.', $extension, 2);
$component = $parts[0];
$section = null;
$columns = 7;
Expand All @@ -40,6 +40,13 @@
{
$section = $inflector->toPlural($section);
}

// If the section ends with .fields, then the category belongs to com_fields
if (substr($section, -strlen('.fields')) === '.fields')
{
$component = 'com_fields';
$section = 'fields&context=' . str_replace('.fields', '', implode('.', $parts));
}
}

if ($saveOrder)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1077,6 +1077,10 @@
name="core.edit.own"
title="JACTION_EDITOWN"
description="COM_CONFIG_ACTION_EDITOWN_DESC" />
<action
name="core.edit.value"
title="JACTION_EDITVALUE"
description="COM_CONFIG_ACTION_EDITVALUE_DESC" />
</field>

</fieldset>
Expand Down
1 change: 1 addition & 0 deletions administrator/components/com_contact/access.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<action name="core.edit" title="JACTION_EDIT" description="JACTION_EDIT_COMPONENT_DESC" />
<action name="core.edit.state" title="JACTION_EDITSTATE" description="JACTION_EDITSTATE_COMPONENT_DESC" />
<action name="core.edit.own" title="JACTION_EDITOWN" description="JACTION_EDITOWN_COMPONENT_DESC" />
<action name="core.edit.value" title="JACTION_EDITVALUE" description="JACTION_EDITVALUE_COMPONENT_DESC" />
</section>
<section name="category">
<action name="core.create" title="JACTION_CREATE" description="COM_CATEGORIES_ACCESS_CREATE_DESC" />
Expand Down
23 changes: 23 additions & 0 deletions administrator/components/com_contact/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,17 @@
<option value="0">JHIDE</option>
</field>

<field
name="show_user_custom_fields"
type="category"
multiple="true"
extension="com_users.user.fields"
label="COM_CONTACT_FIELD_USER_CUSTOM_FIELDS_SHOW_LABEL"
description="COM_CONTACT_FIELD_USER_CUSTOM_FIELDS_SHOW_DESC"
>
<option value="-1">JALL</option>
</field>

<field
name="show_links"
type="radio"
Expand Down Expand Up @@ -1010,6 +1021,18 @@
<option value="0">JNO</option>
</field>

<field
name="custom_fields_enable"
type="radio"
class="btn-group btn-group-yesno"
label="JGLOBAL_CUSTOM_FIELDS_ENABLE_LABEL"
description="JGLOBAL_CUSTOM_FIELDS_ENABLE_DESC"
default="1"
>
<option value="1">JSHOW</option>
<option value="0">JHIDE</option>
</field>

</fieldset>

<fieldset
Expand Down
14 changes: 14 additions & 0 deletions administrator/components/com_contact/helpers/contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,20 @@ public static function addSubmenu($vName)
'index.php?option=com_categories&extension=com_contact',
$vName == 'categories'
);

if (JComponentHelper::getComponent('com_contact')->params->get('custom_fields_enable', '1'))
{
JHtmlSidebar::addEntry(
JText::_('JGLOBAL_FIELDS'),
'index.php?option=com_fields&context=com_contact.contact',
$vName == 'fields.contact'
);
JHtmlSidebar::addEntry(
JText::_('JGLOBAL_FIELD_GROUPS'),
'index.php?option=com_categories&extension=com_contact.contact.fields',
$vName == 'categories.contact'
);
}
}

/**
Expand Down
11 changes: 11 additions & 0 deletions administrator/components/com_contact/models/forms/contact.xml
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,17 @@
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>

<field
name="show_user_custom_fields"
type="category"
multiple="true"
extension="com_users.user.fields"
label="COM_CONTACT_FIELD_USER_CUSTOM_FIELDS_SHOW_LABEL"
description="COM_CONTACT_FIELD_USER_CUSTOM_FIELDS_SHOW_DESC"
>
<option value="-1">JALL</option>
</field>

<field
name="show_links"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<form>
<fields name="custom">
<fieldset name="custom">
<field name="section" type="section" default="com_contact.contact">
<option value="com_contact.contact">COM_CONTACT_FIELDS_CONTEXT_CONTACT</option>
<option value="com_contact.mail">COM_CONTACT_FIELDS_CONTEXT_MAIL</option>
</field>
</fieldset>
</fields>
</form>
1 change: 1 addition & 0 deletions administrator/components/com_content/access.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<action name="core.edit" title="JACTION_EDIT" description="JACTION_EDIT_COMPONENT_DESC" />
<action name="core.edit.state" title="JACTION_EDITSTATE" description="JACTION_EDITSTATE_COMPONENT_DESC" />
<action name="core.edit.own" title="JACTION_EDITOWN" description="JACTION_EDITOWN_COMPONENT_DESC" />
<action name="core.edit.value" title="JACTION_EDITVALUE" description="JACTION_EDITVALUE_COMPONENT_DESC" />
</section>
<section name="category">
<action name="core.create" title="JACTION_CREATE" description="COM_CATEGORIES_ACCESS_CREATE_DESC" />
Expand Down
12 changes: 12 additions & 0 deletions administrator/components/com_content/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,18 @@
<option value="0">JNO</option>
</field>

<field
name="custom_fields_enable"
type="radio"
class="btn-group btn-group-yesno"
label="JGLOBAL_CUSTOM_FIELDS_ENABLE_LABEL"
description="JGLOBAL_CUSTOM_FIELDS_ENABLE_DESC"
default="1"
>
<option value="1">JSHOW</option>
<option value="0">JHIDE</option>
</field>

</fieldset>

<fieldset
Expand Down
Loading