Modifying design based upon what's seen in list pages

2 posts by 2 authors in: Forums > CMS Builder
Last Post: April 20, 2011   (RSS)

Re: [kimamel] Modifying design based upon what's seen in list pages

By Kenny - April 20, 2011

You will need to use "if statements"

On a Detail Page:

<?php if ($your_tableRecord['your_field']): ?>

...your code...

<?php endif ?>




On a List Page:

<?php foreach ($your_tableRecords as $record): ?>
<?php if ($record['your_field']): ?>

...your code...

<?php endif ?>
<?php endforeach; ?>

This way, you are checking to see if the content is there, and if it is, then display the code between the if and endif

Let us know if you need further help on this.

Kenny