USING CMSB TO CUSTOMIZE LINK INFORMATION IN A LIST - Aug 2nd, 2010


You can replace the link text and URL in a link, or any other area in an HTML document by placing a PHP call in place of
the area you want to make variable, and creating textfields in a multi record section editor. Here’s an example of
making the text and url in a link variable:


<?PHP foreach ($other_eventsRecords as $record): ?>
<p align="left"><a class="special" href="<?PHP echo $record['url'] ?>"><?PHP echo
$record['organization_name'] ?></a><br />
<?PHP endforeach ?>


If you’re going to use this to display a list of links on your web page, don’t forget to remove the:


'where' => whereRecordNumberInUrl(1),
'limit' => '1',


and


$other_eventsRecord = @$other_eventsRecords[0]; // get first record


from the code before the head or you’ll only show a single listing on your page.



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