Change count phrase on albums with files other than images

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.

Comments

  • acrylian Administrator, Developer
    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.
  • 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...

    `
    0)) echo 'smallthumbs'; ?>">
    <?php if (getNumAlbums() > 0) { echo getNumAlbums().' '.gettext('subalbums'); } ?>
    <?php if (getNumImages() > 0) { echo getNumImages().' '.gettext('images'); } ?>
    `
    I've exchanged 'images' with 'files' and it works so this is the right part to change.
  • acrylian Administrator, Developer
    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.
Sign In or Register to comment.