Caption Titles Not Showing Up

7 posts by 2 authors in: Forums > CMS Builder
Last Post: September 5, 2008   (RSS)

By Wolf-E - September 5, 2008

HI.

Two of the cms sites we have built are having problems with the (File Upload) Captions. I've had a look at the uploads and everything seems fine, except the clients are correct, when one adds a caption under an image (that was uploaded), it never appears on the web page. Do we need to code the page (on the FileUploads part of the code) to get it to display the captions (eg: 'showCaption') or something similar?

Cheers.

Re: [Wolf-E] Caption Titles Not Showing Up

By Kenny - September 5, 2008

You have to place the echo statement where you want the caption to show up:

<?php echo $upload['info1'] ?> for info1
<?php echo $upload['info2'] ?> for info2

etc...

Re: [sagentic] Caption Titles Not Showing Up

By Wolf-E - September 5, 2008

Hi Sagentic. I tried this but no luck: (in the Uploads code bit)

<?php foreach ($clientsRecord['images'] as $upload): ?>
<?php if ($upload['hasThumbnail']): ?>
<img src="<?php echo $upload['thumbUrlPath'] ?>" <?php echo $upload['info1'] ?> <?php echo $upload['info2'] ?>width="<?php echo $upload['thumbWidth'] ?>" vspace="10" hspace="10" border="1" align="center" height="<?php echo $upload['thumbHeight'] ?>" alt="Our Client" />

Do I need to chnage ['info1'] to something like ['caption'] ?



Cheers

Re: [Wolf-E] Caption Titles Not Showing Up

By Kenny - September 5, 2008

Place it outside of the image tag like this:

<img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" vspace="10" hspace="10" border="1" align="center" height="<?php echo $upload['thumbHeight'] ?>" alt="Our Client" /> <?php echo $upload['info1'] ?> <?php echo $upload['info2'] ?>

Re: [Wolf-E] Caption Titles Not Showing Up

By Kenny - September 5, 2008

Replace <a href="<?php echo $clientsRecord['_link'] ?>">Read More About This Client Here...</a>

with

<a href="<?php echo $clientsRecord['_link'] ?>">Read More About<?php echo $clientsRecord['client_name'] ?>

if you have that field set up. You may have it named something different.

Re: [sagentic] Caption Titles Not Showing Up

By Wolf-E - September 5, 2008

That works really well!

Thanks for the code sagentic, I appreciate it and your time. Have a good weekend.

regards ~ Wolf-E