Member
Member
toinced   05-02-2015, 09:58
#1

Hello,

there is a way to show the name of images only in a specific album?

Can i use the block code on album settings?

My configuration:
Zenphoto version: 1.4.6
Template: zpBase

ThankYou

Administrator
Administrator
acrylian   05-02-2015, 10:24
#2

Yes, there is but you need to code it on the theme used by checking for the current album. See the object model tutorial on our site.

Codeblocks by default work only in the place they are coded. For standard themes that means on the main album page (the thumbs).

Member
Member
toinced   06-02-2015, 10:11
#3

Hello,

following your advices, i've modified my album.php in this way:

`

`
might be useful to someone...

Administrator
Administrator
acrylian   06-02-2015, 14:02
#4

A bit overly complicated ;-) You better actually check the unique album name, not the title. Especially important in case you plan to use the multilingual mode.

$_zp_current_album->name gets you the folder name. The name includes always the parent albums like toplevel/sublevel1/sublevel2/(…)

So much simpler:

if($_zp_current_album->name == 'YOUR_ALBUM_NAME") { printImageTitle(); }
Also see http://www.zenphoto.org/news/zenphotos-object-model-framework

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.