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

Commit

Permalink
Bugfixes
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
Zignature committed Nov 20, 2021
1 parent d059cc5 commit fc5be14
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 154 deletions.
7 changes: 7 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,13 @@ function yourCallbackFunction(data) {

## Changelog

### v2.5.1

- 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
- **Note:** not tested with Assets, Matrix, Playa and Channel Files fieldtypes/modules

### v2.5.0

- ExpressionEngine 4+ compatibility
Expand Down
74 changes: 17 additions & 57 deletions system/user/addons/json/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# JSON #

Output ExpressionEngine data in JSON format.

## Requirements

- ExpressionEngine 4.x, 5.x or 6.x
Expand All @@ -14,9 +12,10 @@ Output ExpressionEngine data in JSON format.
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.
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.

***No duplicate custom fields in channels!***
***Do not select duplicate custom fields in channels***

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.
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.
Since legacy custom fields do not have their own table they will work fine either way.

***Fluid fieldtype***

Expand Down Expand Up @@ -457,15 +456,21 @@ function yourCallbackFunction(data) {

## Changelog

### v2.5.1

- 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
- **Note:** not tested with Assets, Matrix, Playa and Channel Files fieldtypes/modules

### v2.5.0

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

### v1.1.9

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

### v1.1.8

- Added `json_plugin_entries_end` and `json_plugin_members_end` hooks
- Improved Wygwam support
- Fixed intermittent disappearing `ee()->TMPL` object

### v1.1.7

- Added `offset` support for members

### v1.1.6

- Add Channel Files support.

### v1.1.5

- Add `root_node` and `item_root_node` parameters.

### v1.1.4

- Add manipulations to Assets fields

### v1.1.3

- Fix bug where show_categories parameter did not work

### v1.1.2

- Fix bug where `fields` parameter was not being honored
- Fix bug causing fatal MySQL error when using the `fixed_order` parameter

### v1.1.1

- Fix WSOD on Plugins page
- Fix PHP errors when an Assests field has no selection(s)

### v1.1.0

- Added support for the following fieldtypes: Assets, Grid, Playa, Relationships
- Change IDs (entry_id, author_id, etc.) and Dates to integers
- Added `show_categories` and `show_category_group` parameters to `{exp:json:entries}`
- Added `{exp:json:search}`
- Added JSONP support
- Added `date_format` parameter
- Added `content_type` parameter
## Attribution

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

- IDs (entry_id, author_id, etc.) and Dates are returned as integers
- The following fieldtypes have different output: Playa, Assets. Please see docs above for an example of their output.
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.
25 changes: 14 additions & 11 deletions system/user/addons/json/addon.setup.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
<?php
/*
*
* Requires ExpressionEngine 6.
* Original author: Rob Sanchez
* Original author URL: https://github.com/rsanchez
* Original docs URL: https://github.com/rsanchez/json
*
* Requires ExpressionEngine 4.x, 5.x or 6.x.
* Older versions of ExpressionEngine are not supported.
*
* EE6 compatibility created by Zignature.
* https://github.com/zignature/json
* EE4-EE6 compatibility created by Zignature.
*
*/
return array(
'author' => 'Rob Sanchez',
'author_url' => 'https://github.com/rsanchez',
'description' => 'Output ExpressionEngine channel entries in JSON format.',
'docs_url' => 'https://github.com/rsanchez/json',
'name' => 'JSON',
'settings_exist' => FALSE,
'version' => '2.5.0',
'namespace' => 'rsanchez/json'
'author' => 'Zignature',
'author_url' => 'https://github.com/zignature',
'description' => 'Output ExpressionEngine channel entries in JSON format.',
'docs_url' => 'https://github.com/zignature/json',
'name' => 'JSON',
'settings_exist' => FALSE,
'version' => '2.5.1',
'namespace' => 'zignature/json'
);
Loading

0 comments on commit fc5be14

Please sign in to comment.