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: [sagentic] Caption Titles Not Showing Up

By Wolf-E - September 5, 2008

Ahhh! (....It's been a long week!)

Obvious now as I see it, many thanks. BTW, whilst you're here, do you know a way to get this to work differently?

Fri, Aug 22nd, 2008 <br/>
<a href="clients_in_depth.php?17">Read More About This Client Here...</a><br/> This is off our list page, where we have the date and the client's name, then the link to the detail page aS shown. What i'd like to do is have it read (on the page facing the public:)

Fri, Aug 22nd, 2008 <br/>
<a href="clients_in_depth.php?17">Read More About *CLIENT NAME SHOWS UP* Here...</a><br/>

here's the normal code: <?php echo date("D, M jS, Y ", strtotime($clientsRecord['date'])) ?><br/>
<a href="<?php echo $clientsRecord['_link'] ?>">Read More About This Client Here...</a><br/>



Thanks!

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