Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder:
Retrieving section title or table name?

 

 


videopixel
User

Dec 2, 2011, 5:02 PM

Post #1 of 4 (1630 views)
Shortcut
Retrieving section title or table name? Can't Post

I'm merging 3 sections with this code:


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...


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

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

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



thanks!


(This post was edited by videopixel on Dec 2, 2011, 5:03 PM)


Collin
Novice


Dec 3, 2011, 10:47 AM

Post #2 of 4 (1507 views)
Shortcut
Re: [videopixel] Retrieving section title or table name? [In reply to] Can't Post

If you used a call like:


Code
list(records, metaData) = getRecords(options)


metaData will contain lots of information about the records.

Also:


Code
showme(records)


will give you a lot of information about the records.


videopixel
User

Dec 3, 2011, 2:18 PM

Post #3 of 4 (1489 views)
Shortcut
Re: [Collin] Retrieving section title or table name? [In reply to] Can't Post

ok, I need this

Code
[tableName]

How do i insert this between the brackets?

Code
does not work? 
<?php echo $record['tableName'] ?>



videopixel
User

Dec 3, 2011, 4:56 PM

Post #4 of 4 (1479 views)
Shortcut
Re: [videopixel] Retrieving section title or table name? [In reply to] Can't Post

Found it already ;-)

needed to be

Code
[_tableName]


Thanks Collin for putting me on the right track!