Loading Content with AJAX

Topics: Customizing Orchard, General
Feb 18, 2011 at 4:04 PM

Hi!

I'm new to Orchard and basically I'd like to be able to have lots of pages loadable as json pages, i.e. - just the json, no other content. Is this an easy thing to be able to do in Orchard?

Thanks,
Daniel 

Coordinator
Feb 18, 2011 at 8:01 PM

Sure, just write a controller action that returns a JsonResult.

Feb 21, 2011 at 9:40 AM

Cool thanks - I will try that as soon as I've figured out the current error!

Feb 21, 2011 at 1:38 PM

Hey,

I just wanted to make sure I've got the right idea... Are you suggesting I extend Orchard as if I were adding new features to the core, or should I be making a new Module for this? Otherwise, I'm not entirely sure where all the existing controllers are - am I missing something? Just need somebody to point me in the right direction if you don't mind :)

Thanks!

Coordinator
Feb 21, 2011 at 9:20 PM

In a module.

Aug 19, 2011 at 2:25 PM

Was this module ever developed? I too would like a way to get a JSON rendering of a page.