Output JSON and redirect?
Posted: 14 February 2011 05:27 AM   [ Ignore ]
Wallflower
Rank
Total Posts:  4
Joined  2010-12-15

Hi,
We’re building an ad system that uses safecracker to upload all the ads and associated data, but then must aggregate all of the ads together and send them as one JSON call to a mobile app. But while the user is inputting the ads, he/she must be able to get through the administration section without seeing what would look like gobbledygook to them. Can SC handle both?

Profile
 
 
Posted: 14 February 2011 09:25 PM   [ Ignore ]   [ # 1 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

You can’t have a redirect and output json at the same time. I’d recommend using a normal redirect and creating a separate template to create your aggregated JSON.

Profile