ZenphotoCMS Forum
Change count phrase on albums with files other than images - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Change count phrase on albums with files other than images (/thread-10830.html)



Change count phrase on albums with files other than images - Pauli - 2013-02-09

Hi, new here and 1st of all thx to the devs due this fantastic CMS. Installing was a breeze and I'm already uploading content.

Now my question: On the albums page it says "x Images" (the # of images in the album) under the thumbnails. Is it possible to change it to "x Songs" for a certain album containing mp3's? Or "x Videos" if the album contains vids?

I wouldn't mind to "hardwire" a certain album name to this modification (let's say: only the album "myAudioFiles" gets the "Songs-Label") somewhere in the php-files. But - you guess it - I have no clue how to do it.

Thx in advance for any hint.




Change count phrase on albums with files other than images - acrylian - 2013-02-09

What it says there is all a matter of the theme used. So you will have to customize that theme.
See the theming tutorial to learn the basics.




Change count phrase on albums with files other than images - Pauli - 2013-02-09

I found the part that's responsible for displaying the data but I don't know how to set the correct if-condition in PHP.

I just need something like "if album-title=('music') echo ... ('Songs')" so to speak...

`

`
I've exchanged 'images' with 'files' and it works so this is the right part to change.




Change count phrase on albums with files other than images - acrylian - 2013-02-09

YOu never check for the title of an item as that is indepentent of the name. In case of an album that is the folder name which includes parents if there are such. Review the template-functions documentation and maybe also the object model tutorial.