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. |
|
Posts: 27300
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
Posts: 15
is this simple?
Posts: 27300
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
Posts: 17
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.
Posts: 27300
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
Posts: 15
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.
Posts: 17
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.
Posts: 27300
http://codex.gallery2.org/Gallery3:Modules:under_photo_text
Add to correct anything you need.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team