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

Support for EE3 #58

Open
anthony-pinskey opened this issue May 27, 2016 · 3 comments
Open

Support for EE3 #58

anthony-pinskey opened this issue May 27, 2016 · 3 comments

Comments

@anthony-pinskey
Copy link

anthony-pinskey commented May 27, 2016

@rsanchez
Can we get support for this with ExpressionEngine 3 with the new directory/core changes?

Thanks!

@giriprashaad
Copy link

giriprashaad commented Jun 29, 2016

Would be good to add support.

But converting this to EE3 was a 5 minute process.

Create a file addon.setup.php with the following:

<?php

return array(
    'author' => 'rsanchez',
    'author_url' => 'https://github.com/rsanchez/json',
    'description' => 'Output ExpressionEngine data in JSON format.',
    'docs_url' => 'https://github.com/rsanchez/json',
    'name' => 'Json',
    'settings_exist' => false,
    'version' => '1.0.0',
    'namespace'   => 'json/Json'
);

and modify line 55 in the pi.json.php file:

from
require_once PATH_MOD.'channel/mod.channel' . EXT;

to
require_once PATH_MOD.'channel/mod.channel.php';

I wasn't sure why Expression engine 3 isn't accepting EXT. But the fix just works.

@rsanchez I haven't checked this completely but I'm able to read channel entries as JSON data which is what I want for now.

@stefcab
Copy link

stefcab commented Mar 1, 2017

@giriprashaad ,

Thanks for how converting Json to EE3, I will test your tips soon.

Regards,

Stéphane

@stefcab
Copy link

stefcab commented Sep 1, 2017

It's working fine using EE 3.5.11

Thanks a lot !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants