Single Records on Same Page as Multi

3 posts by 2 authors in: Forums > CMS Builder
Last Post: February 18, 2009   (RSS)

Re: [ThreeTree] Single Records on Same Page as Multi

By Dave - February 18, 2009

Hi ThreeTree,

Yes, we do this quite often. Just create some code to display a "detail" page and remove the 'where' option and add 'allowSeach' => 'false', something like this:

list($articleRecords, $articleMetaData) = getRecords(array(
'tableName' => 'article',
'allowSearch' => false,
'limit' => '1',
));
$articleRecord = @$articleRecords[0]; // get first record


Let me know if that works for you. We usually create a section called "Misc" for little snippets of content used through-out the site.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Single Records on Same Page as Multi

By ThreeTree - February 18, 2009 - edited: February 18, 2009

I figured out that I need to create a new editor. Have it working now. Thanks for the info!