Jump to content

Image Description on Prettyphoto


Tobiassos
 Share

Recommended Posts

Hi,

try to get a picture displayed with prettyphoto script. the only thing I stuck with is how I get  the description of the image at the place where the title stands.

thanks

Tobias

<h2>Picture alone7</h2>

<ul class="gallery clearfix">

<a href="<?=$pages->get("/site-settings/")->site_prettyphoto->url ?>" rel="prettyPhoto" title="HERE WE NEED THE DESCRIPTION" >  <img src="<?php echo $config->urls->templates?>images/thumbnails/t_2.jpg" width="90" height="90" alt="" /></a>

</ul>

post-3335-0-01986400-1442665808_thumb.jp

Link to comment
Share on other sites

For now try replacing the "HERE WE NEED THE DESCRIPTION" by

<?=$pages->get("/site-settings/")->site_prettyphoto->description ?>

Even if it works, there are still some things that need to be corrected in your html

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...