Add thumbnail with each title displayed

5 posts by 2 authors in: Forums > CMS Builder
Last Post: February 24, 2010   (RSS)

By invisions - February 24, 2010

Hello.
I need to add a unique thumbnail picture with each title listed on my page. Here is a reference of what I am trying to do: http://www.cloughharbour.com/go/project

And, I am currently using the following code to list the titles:


<div id="fp_list_placement">
<?php foreach ($environmental_analysisRecords as $record): ?>
<a href="<?php echo $record['_link'] ?>"><?php echo $record['title'] ?></a>
<br/>
<hr/>
<?php endforeach ?>
</div>


I appreciate the help.

Thanks.
Daniel Pegues
invisionshosting.com

Re: [gkornbluth] Add thumbnail with each title displayed

By invisions - February 24, 2010

Hey Jerry,
Thank you very much for your post and your help.

With the code you provided, how do I choose which thumbnail image to use for each title listed? Do I do this in the admin panel, and if so, where in the admin panel do I choose a thumbnail image for each article/title?

Thank you again.
Daniel Pegues
invisionshosting.com

Re: [invisions] Add thumbnail with each title displayed

By gkornbluth - February 24, 2010 - edited: February 24, 2010

If I'm understanding you correctly, you should have created an upload field in your environmental_analysis section editor. Limit the amount of uploads to "1" and the file types to jpg,gif,png . (I usually call my field list_page_image if it's to be a distinctly unique list page image)

For each record, you'd upload a unique list page image for that record.

Then the thumbnail that displays next to a particular "title" is the one you uploaded.

Best,

Jerry
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Add thumbnail with each title displayed

By invisions - February 24, 2010

Thank you so much again for your help Jerry. It is late where I am right now, so I am gonna get to this first thing in the morning. I will write tomorrow and let you know how it goes.

Thanks again!!!!
Daniel Pegues
invisionshosting.com