Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Instant Website: Realty/Listings/Auto:
Display Title and Caption

 

 


nprivette
User

Oct 12, 2009, 9:56 AM

Post #1 of 6 (4430 views)
Shortcut
Display Title and Caption Can't Post

I saw a previous thread about this problem and tried the solution, but can't get it to work. I am trying to load images from an uploads section in CMS builder into a jquery slideshow gallery. Everything is working great except title and caption display. I tried this:

<div class="image-title"><?php echo $record['info1'] ?></div>

<div class="image-desc"><?php echo $record['info2'] ?></div>

as suggested by the previous thread, but I get an undefined index error. Are info1 and info2 not loaded with the load records command given by the code generator?

Thanks!


ross
Staff / Moderator


Oct 12, 2009, 11:08 AM

Post #2 of 6 (4423 views)
Shortcut
Re: [nprivette] Display Title and Caption [In reply to] Can't Post

Hi there.

Thanks for posting!

Typically, you need to have a foreach loop going in order to cycle through your images. The code generator will give you what you need for the for loop.

Could you attach a copy of the page you are working on so I can see all your code (note: don't just paste all the code into the browser, actually attach a copy of it as that is much easier to read :)).

Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com

Hire me!  Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/



nprivette
User

Oct 12, 2009, 12:04 PM

Post #3 of 6 (4417 views)
Shortcut
Re: [ross] Display Title and Caption [In reply to] Can't Post

Sure thing. I've attached slideshow.php. You can see the rest of the page here:

http://www.privettefamily.com/brafford/simple-realty/gallery.php.

For now I've got "Image Title" and Image Description" text as placeholders so the error won't show until I get everything ironed out.

Thanks!
Attachments: slideshow.php (4.10 KB)


nprivette
User

Oct 14, 2009, 4:12 PM

Post #4 of 6 (4392 views)
Shortcut
Re: [nprivette] Display Title and Caption [In reply to] Can't Post

It's been two days since I posted these files. Any help please?


Damon
Staff / Moderator


Oct 14, 2009, 9:25 PM

Post #5 of 6 (4386 views)
Shortcut
Re: [nprivette] Display Title and Caption [In reply to] Can't Post

Just a small change needed to display the image title and description, replace "record" with "upload":


Code
<div class="image-title"><?php echo $upload['info1'] ?></div> 

<div class="image-desc"><?php echo $upload['info2'] ?></div>


If you have any other problems with this, let me know, and I will reply right away.

--------------------------------------------------- 
Cheers
Damon Edis
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/


nprivette
User

Oct 15, 2009, 8:16 PM

Post #6 of 6 (4358 views)
Shortcut
Re: [Damon] Display Title and Caption [In reply to] Can't Post

That fixed it. Thanks!