Using code provided by Ryan here, I've created a module that coverts a PageArray into JSON format.
It's been super useful to me, and I'm hoping it will be for others as well
Posted 21 July 2012 - 10:53 PM
$this->addHook('PageArray::toJSON', $this, 'pagesToJSON', $options);$myPages->toJSON(array('fields' => 'id,name'));Posted 22 July 2012 - 05:43 AM
Posted 22 July 2012 - 07:04 AM
$myPages->toJSON($a, $b, $c);
public function toJSON(HookEvent $event) {
$a = $event->arguments[0];
$b = $event->arguments[1];
$c = $event->arguments[2];
}
$options = $event->arguments[0];
Community Support →
General Support →
MarkupTwitterFeed - where do I get the feed?Started by vayu, 13 Jun 2013 |
|
|
||
Community Support →
Modules/Plugins →
Audio MP3 Flash PlayerStarted by kixe, 13 Jun 2013 |
|
|
||
Community Support →
Modules/Plugins →
Simple Module for Session messagesStarted by Harmster, 09 Jun 2013 |
|
|
||
Module
Community Support →
Modules/Plugins →
ProcessEmailToPageStarted by Pete, 02 Jun 2013 |
|
|
||
Community Support →
Modules/Plugins →
Markup Load AtomStarted by teppo, 02 Jun 2013 |
|
|
0 members, 0 guests, 0 anonymous users