Member
Member
Pauli   2013-02-09, 08:40
#1

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.

Administrator
Administrator
acrylian   2013-02-09, 11:16
#2

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.

Member
Member
Pauli   2013-02-09, 19:19
#3

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.

Administrator
Administrator
acrylian   2013-02-09, 19:25
#4

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.

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