Single Records on Same Page as Multi

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

By ThreeTree - February 18, 2009

Is it possible to have non multi list fields on the same page as multi items? I want to have an updatable field in a side column but it doesn't change with each instance. I've created a page with listings for uploadable pdfs but want constant fields as well. Please point me to the doc I need. Do I need to set up a system field? Thanks. Making progress!

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