add a image description under the thumbnails

jamigreen1975

Joined: 2011-10-31
Posts: 15
Posted: Mon, 2011-10-31 21:35

Is there a way i can add the image description underneath each thumbnail, when not rolloved over. Im using the wind theme.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2011-11-01 03:38

You would need to create a copy of the theme and customize it yourself. Then edit views/album.html.php to add the items description in the for each loop.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
jamigreen1975

Joined: 2011-10-31
Posts: 15
Posted: Tue, 2011-11-01 18:37

is this simple?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2011-11-01 20:34

http://codex.gallery2.org/Gallery3:Themes#Duplicate_and_deploy_your_copy_of_the_default_theme
should get you started, ask specific questions if you get stuck.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
kaniea

Joined: 2010-12-06
Posts: 17
Posted: Tue, 2011-11-01 21:14

If it helps here is a quick module that will take the first 100 characters of the album/photo description and put it under the thumbnail for that album/photo. Feel free to modify it.

floridave is correct, there is no way to show the description without modifying the theme. The only problem is that if you modify the theme you will need to manually change it again if the theme updates.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2011-11-01 23:16

kaniea,
Care to add your module to the codex? I can help with that if you need. I did not know it exists. Just use your forums username/password to the codex and you should be good to go.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
jamigreen1975

Joined: 2011-10-31
Posts: 15
Posted: Wed, 2011-11-02 05:55

thanks kaniea

I have added it, and it's just what I need, now I just need to work out how to get it to be on the gallery all the time and not just when you rollover the thumbnail.

 
kaniea

Joined: 2010-12-06
Posts: 17
Posted: Wed, 2011-11-02 13:56

I'm glad it helped.

Dave, I'll try and get it posted onto the codex sometime this week. I've never posted anything before but I assume it isn't that challenging.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2011-11-12 20:29

http://codex.gallery2.org/Gallery3:Modules:under_photo_text
Add to correct anything you need.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team