Skip to content
This repository was archived by the owner on Nov 26, 2023. It is now read-only.

Commit fc5be14

Browse files
committed
Bugfixes
- Bugfix: Removed all remnants of fluid field data, since the Fluid fieldtype is not (yet) supported. The remnant data is unusable at this point. Working on support for Fluid fieldtype - Bugfix: Updated the `members` function to fit EE6.x - Changed `addon.setup.php` and cleaned it up
1 parent d059cc5 commit fc5be14

File tree

4 files changed

+77
-154
lines changed

4 files changed

+77
-154
lines changed

README.markdown

+7
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,13 @@ function yourCallbackFunction(data) {
456456

457457
## Changelog
458458

459+
### v2.5.1
460+
461+
- Bugfix: Removed all remnants of fluid field data, since the Fluid fieldtype is not (yet) supported. The remnant data is unusable at this point. Working on support for Fluid fieldtype
462+
- Bugfix: Updated the `members` function to fit EE6.x
463+
- Changed `addon.setup.php` and cleaned it up
464+
- **Note:** not tested with Assets, Matrix, Playa and Channel Files fieldtypes/modules
465+
459466
### v2.5.0
460467

461468
- ExpressionEngine 4+ compatibility

system/user/addons/json/README.md

+17-57
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# JSON #
22

3-
Output ExpressionEngine data in JSON format.
4-
53
## Requirements
64

75
- ExpressionEngine 4.x, 5.x or 6.x
@@ -14,9 +12,10 @@ Output ExpressionEngine data in JSON format.
1412
I don't own Assets, Matrix and Playa modules, so if you use Assets, Matrix or Playa fields I recommend to verify whether changes to the code are required and to test this plugin on a local or development server before using it on a production/live server.
1513
Since this plugin only outputs data I don't expect any damage but I will not accept any liability for any problems risen from using this plugin.
1614

17-
***No duplicate custom fields in channels!***
15+
***Do not select duplicate custom fields in channels***
1816

19-
Since EE4 it is possible to use custom fields outside of field groups as well as inside field groups. This plugin will not work when a custom field is assigned as a standalone custom field as well as a grouped custom field within the same channel. You need to choose to use either a grouped custom field or a standalone custom field.
17+
Since EE4 it is possible to use custom fields outside of field groups as well as inside field groups. This plugin will not work when a new custom field is assigned as a standalone custom field as well as a grouped custom field within the same channel. You need to choose to use either a grouped custom field or a standalone custom field. This is because newly created custom fields get their own table in the database.
18+
Since legacy custom fields do not have their own table they will work fine either way.
2019

2120
***Fluid fieldtype***
2221

@@ -457,15 +456,21 @@ function yourCallbackFunction(data) {
457456

458457
## Changelog
459458

459+
### v2.5.1
460+
461+
- Bugfix: Removed all remnants of fluid field data, since the Fluid fieldtype is not (yet) supported. The remnant data is unusable at this point. Working on support for Fluid fieldtype
462+
- Bugfix: Updated the `members` function to fit EE6.x
463+
- Changed `addon.setup.php` and cleaned it up
464+
- **Note:** not tested with Assets, Matrix, Playa and Channel Files fieldtypes/modules
465+
460466
### v2.5.0
461467

462-
- ExpressionEngine 4.x, 5.x or 6.x required
468+
- ExpressionEngine 4+ compatibility
463469
- Several changes to the code due to database changes
464470
- Added support for File Grid fieldtype
465-
- Added support for legacy custom fields and data (EE2 and EE3 custom fields and data)
466-
- Added `/system/user/addons/json/icon.png` for the control panel
467-
- Fluid fieldtype not supported
468-
- **Note:** not tested with Assets, Matrix and Playa
471+
- Added support for legacy custom fields and data (EE2 and EE3 custom fields and data) for compatibility with upgraded versions of EE4+
472+
- Added `/system/user/addons/json/icon.png` for the EE6 control panel
473+
- **Note:** not tested with Assets, Matrix, Playa and Channel Files fieldtypes/modules
469474

470475
### v1.1.9
471476

@@ -475,53 +480,8 @@ function yourCallbackFunction(data) {
475480
- Added `/system/user/addons/json/README.md` for the add-on manual in the control panel (as of EE3)
476481
- **Note:** not tested with Assets, Matrix and Playa
477482

478-
### v1.1.8
479-
480-
- Added `json_plugin_entries_end` and `json_plugin_members_end` hooks
481-
- Improved Wygwam support
482-
- Fixed intermittent disappearing `ee()->TMPL` object
483-
484-
### v1.1.7
485-
486-
- Added `offset` support for members
487-
488-
### v1.1.6
489-
490-
- Add Channel Files support.
491-
492-
### v1.1.5
493-
494-
- Add `root_node` and `item_root_node` parameters.
495-
496-
### v1.1.4
497-
498-
- Add manipulations to Assets fields
499-
500-
### v1.1.3
501-
502-
- Fix bug where show_categories parameter did not work
503-
504-
### v1.1.2
505-
506-
- Fix bug where `fields` parameter was not being honored
507-
- Fix bug causing fatal MySQL error when using the `fixed_order` parameter
508-
509-
### v1.1.1
510-
511-
- Fix WSOD on Plugins page
512-
- Fix PHP errors when an Assests field has no selection(s)
513-
514-
### v1.1.0
515-
516-
- Added support for the following fieldtypes: Assets, Grid, Playa, Relationships
517-
- Change IDs (entry_id, author_id, etc.) and Dates to integers
518-
- Added `show_categories` and `show_category_group` parameters to `{exp:json:entries}`
519-
- Added `{exp:json:search}`
520-
- Added JSONP support
521-
- Added `date_format` parameter
522-
- Added `content_type` parameter
483+
## Attribution
523484

524-
## Upgrading from 1.0.x
485+
This plugin is a fork of the excellent [JSON plugin](https://github.com/rsanchez/json) by [Rob Sanchez](https://github.com/rsanchez).
525486

526-
- IDs (entry_id, author_id, etc.) and Dates are returned as integers
527-
- The following fieldtypes have different output: Playa, Assets. Please see docs above for an example of their output.
487+
Since I'm a jack of all trades and master of none, I could have never done this without the jumpstart Rob Sanchez's plugin gave me.
+14-11
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
<?php
22
/*
33
*
4-
* Requires ExpressionEngine 6.
4+
* Original author: Rob Sanchez
5+
* Original author URL: https://github.com/rsanchez
6+
* Original docs URL: https://github.com/rsanchez/json
7+
*
8+
* Requires ExpressionEngine 4.x, 5.x or 6.x.
59
* Older versions of ExpressionEngine are not supported.
610
*
7-
* EE6 compatibility created by Zignature.
8-
* https://github.com/zignature/json
11+
* EE4-EE6 compatibility created by Zignature.
912
*
1013
*/
1114
return array(
12-
'author' => 'Rob Sanchez',
13-
'author_url' => 'https://github.com/rsanchez',
14-
'description' => 'Output ExpressionEngine channel entries in JSON format.',
15-
'docs_url' => 'https://github.com/rsanchez/json',
16-
'name' => 'JSON',
17-
'settings_exist' => FALSE,
18-
'version' => '2.5.0',
19-
'namespace' => 'rsanchez/json'
15+
'author' => 'Zignature',
16+
'author_url' => 'https://github.com/zignature',
17+
'description' => 'Output ExpressionEngine channel entries in JSON format.',
18+
'docs_url' => 'https://github.com/zignature/json',
19+
'name' => 'JSON',
20+
'settings_exist' => FALSE,
21+
'version' => '2.5.1',
22+
'namespace' => 'zignature/json'
2023
);

0 commit comments

Comments
 (0)