Using photos across multiple sections
2 posts by 1 authors in: Forums > CMS Builder
Last Post: November 23, 2010 (RSS)
By zip222 - November 23, 2010
I am trying to setup the following up on a site i am working on, but I am stuck as to how to get it work. This is what I am trying to do
One section editor where i will just upload photo banners
These banners will be utilized by other section editors by using the "get options from database" list field
I have already setup what's described above in the cms, i just don't know what to do with the viewer page to get the banners to display.
here is the base viewer code for the two different sections:
help?
One section editor where i will just upload photo banners
These banners will be utilized by other section editors by using the "get options from database" list field
I have already setup what's described above in the cms, i just don't know what to do with the viewer page to get the banners to display.
here is the base viewer code for the two different sections:
// load records
list($bannersRecords, $bannersMetaData) = getRecords(array(
'tableName' => 'banners',
'limit' => '1',
));
$bannersRecord = @$bannersRecords[0]; // get first record
// load records
list($pagesRecords, $pagesMetaData) = getRecords(array(
'tableName' => 'pages',
'where' => whereRecordNumberInUrl(1),
'limit' => '1',
));
$pagesRecord = @$pagesRecords[0]; // get first record
help?