Adding new fields under 'Album Info'
iankearns
Joined: 2011-12-19
Posts: 14 |
![]() |
Hi there Our charity is happily using Gallery 3.0.2 however I want to make a small change and I wonder if someone can advise as my skills do not extend to PHP etc? When viewing a photo, I wish to add another section under the 'Album Info' which is displayed on the right-hand side of the image. I wish to include information to whom the copyright of the image belongs to and should anyone wish to use the image then who they accredit the image rights to. If anyone can help then I would be very grateful regards and best wishes Ian |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Does this 'copyright' info come from the image or is it just some text that you want to add? Dave |
|
iankearns
Joined: 2011-12-19
Posts: 14 |
![]() |
Hi Dave It is simply some text that I wish to add. The accreditation may likely differ to that of the copyright especially if the image has been 'donated' to our charity. regards Ian |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Edit modules/info/views/info_block.html.php with a text editor. <? endforeach; ?> </ul> to <? endforeach; ?> <li> <strong class="caption">Copyright:</strong> all rights reserved for these items. </li> </ul> Edit as you need. Do you need it translatable as well? Dave |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
More code could be added to have different text for albums versus items. Dave |
|
iankearns
Joined: 2011-12-19
Posts: 14 |
![]() |
Thanks for the reply. Would it be possible to enable it so the field could be different on a per album basis? |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
You could do a bunch of if() statements checking album names or album owner or I think the custom fields module might be a better option. Dave ____________________________________________ |
|
iankearns
Joined: 2011-12-19
Posts: 14 |
![]() |
Custom fields sounds like a plan. Do they install in the same as other CMS like Joomla? |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
http://codex.gallery2.org/Gallery3:Modules:custom_fields Dave |
|