Retrieving section title or table name?

4 posts by 2 authors in: Forums > CMS Builder
Last Post: December 3, 2011   (RSS)

By videopixel - December 2, 2011 - edited: December 2, 2011

I'm merging 3 sections with this code:

$mosaicRecords = array_merge($blogRecords,$portfolioRecords,$downloadsRecords);
shuffle($mosaicRecords);


everything works like expected but I want to show the section names from where they came from...

<?php foreach ($mosaicRecords as $record): ?>
<?php foreach ($record['mosaic'] as $upload): ?>

What goes between the brackets? <?php echo $record['??????'] ?>

<?php endforeach ?>
<?php endforeach ?>



thanks!

Re: [videopixel] Retrieving section title or table name?

By Collin - December 3, 2011

If you used a call like:

list(records, metaData) = getRecords(options)

metaData will contain lots of information about the records.

Also:

showme(records)

will give you a lot of information about the records.

Re: [videopixel] Retrieving section title or table name?

By videopixel - December 3, 2011

Found it already ;-)

needed to be [_tableName]

Thanks Collin for putting me on the right track!