Add photo descripton to hover on Album

silver_2000

Joined: 2012-11-12
Posts: 2
Posted: Sat, 2012-12-01 23:03

Currently shows the Views and the Uploaded by when you hover over an image in the album

Dont need/want either of those - would rather see the description or maybe the first line of the description ?

Ive read some of the help for removing the BY and views but they dont help me ADD other info

Thanks in advance

 
morganfeldon@gm...
morganfeldon@gmail.com's picture

Joined: 2009-06-22
Posts: 31
Posted: Sun, 2012-12-02 23:31

In /themes/(yourtheme)/views/album.html.php, add:

<?= html::purify($child->description) ?>

Somewhere after:

<a href="<?= $child->url() ?>"><?= html::purify($child->title) ?></a>

and before:

<? endforeach ?>

 
silver_2000

Joined: 2012-11-12
Posts: 2
Posted: Mon, 2012-12-03 00:10

Perfect
THANKS !!

 
morganfeldon@gm...
morganfeldon@gmail.com's picture

Joined: 2009-06-22
Posts: 31
Posted: Mon, 2012-12-03 02:22

There's lots of stuff in there if you are curious.

<?php print_r($child); ?>