Jump to content

Json Bannertype


billandr

Recommended Posts

I have a need to reply with json data instead of HTML so that front-end on the site can format the information as necessary.  I've created the following files:

1. /plugins/bannerTypeJson/oxJson/genericJson.class.php

2. /plugins/bannerTypeJson/oxJson/genericJson.delivery.php

3. /plugins/etc/oxJson/oxJson.xml

4. /plugins/customBannerTypes.xml

5. /lib/OX/Extension/bannerTypeJson/bannerTypeJson.php

6/ /lib/OX/Extension/bannerTypeJson/bannerTypeJsonDelivery.php

 

In #5 above:

contentType = json

storageType = json

 

Modified config "allowedBanners": json=1

 

I see the plugin and clicking details shows me everything; but when adding a new banner - I don't see that type listed.

 

I've been looking through the code to see how/where that information is pulled from - but I can't quite seem to locate it.

 

any ideas?

 

Link to comment
Share on other sites

  • 8 months later...
  • 3 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...