backend generating something different than json

Development-related discussion, including bundled plugins
macfly
Bear Rating Disaster
Bear Rating Disaster
Posts: 82
Joined: 27 Mar 2013, 23:07

backend generating something different than json

Postby macfly » 04 Nov 2013, 01:25

Hi,

I'm trying to extend the auto_embed_plugin. For this i want a method, that
* is only callable in a environment, where the user is logged_in
* only works on article-ids belonging to the user logged in
* generates HTML-Output

i tried this via backend.php, but soon learned, that this is wrong (because backend.php sends content-type text/json).

So is there another way to do this?

regards,
macfly.

lotrfan
Bear Rating Disaster
Bear Rating Disaster
Posts: 73
Joined: 18 Mar 2013, 04:42

Re: backend generating something different than json

Postby lotrfan » 04 Nov 2013, 04:56


macfly
Bear Rating Disaster
Bear Rating Disaster
Posts: 82
Joined: 27 Mar 2013, 23:07

Re: backend generating something different than json

Postby macfly » 04 Nov 2013, 13:48

RocknRoll.

didn't know, that it was that simple.

thank you!


Return to “Development”

Who is online

Users browsing this forum: No registered users and 5 guests