SOLVED: I had not closed the boiler plate "<?php COUCH::invoke(); ?>"
Corrected code:
Good Evening All.
I am trying to use viewtopic.php?f=4&t=7498 as a reference to generate JSON output but there is no values of editable being displayed in the output at all.
My current code is:
It generates an output:
I am using V2.2 Beta.
@KK Sir Any help would be appreciated.
Regards,
GenXCoders (Priya)
Corrected code:
- Code: Select all
<?php require_once( 'couch/cms.php' ); ?>
<cms:content_type 'application/json'/>
{
"sosobject" :
[
<cms:pages masterpage="index.php" limit='1'>
{
"SOS Title" : "<cms:show k_page_title />",
"Date" : "<cms:date date format='F d, Y' />",
"Content" : "<cms:addslashes><cms:show content /></cms:addslashes>"
}
</cms:pages>
]
}
<?php COUCH::invoke(); ?>
Good Evening All.
I am trying to use viewtopic.php?f=4&t=7498 as a reference to generate JSON output but there is no values of editable being displayed in the output at all.
My current code is:
- Code: Select all
<?php require_once( 'couch/cms.php' ); ?>
<cms:content_type 'application/json'/>
{
"sosobject" :
[
<cms:pages masterpage="index.php" limit='1'>
{
"SOS Title" : "<cms:show k_page_title />",
"Date" : "<cms:date date format='F d, Y' />",
"Content" : "<cms:addslashes><cms:show content /></cms:addslashes>"
}
</cms:pages>
]
}
It generates an output:
{ "sosobject" : [ { "SOS Title" : "", "Date" : "", "Content" : "" } ] }
I am using V2.2 Beta.
@KK Sir Any help would be appreciated.
Regards,
GenXCoders (Priya)