LETTING YOUR CLIENT DECIDE HOW MANY COLUMNS TO DISPLAY - Aug 3rd, 2010


If you want to allow your client to enter the number of columns that they’d like to display, you can do it like this.

In a single record editor (I have one for all of the common information on my site) add a field called
thumbnail_column_limit

Then create a variable to replace the maxcol number:



<?PHP $col = ($common_informationRecord['thumbnail_column_limit']); ?>



And replace the number in your maxcol code with that variable, like this:



<?php $maxCols=$col; if (@++$count % $maxCols == 0): ?> </tr> <tr>
<?php endif; ?>




The materials on this web site have been created for use with CMS Builder content management software. CMS Builder software is published and licensed for use by InteractiveTools.com. Please contact Interactive Tools for information on the downloading of the software or the purchasing of licenses.


Terms of Service