How to disable Title edit - if Album is Root?

Hi, i had a mod that i did in the old zenphoto that allowed me to disable the editability of an Album Title if it was a Root album and was NOT a sub-album.

IN: admin-functions.php

this is the OLD:
`
$disableEdit = $album->getParent() == null ? 'onFocus="this.blur();"' : '';
echo "Album Title: getTitle() .'" '.$disableEdit.';
`
this is the NEW:
`
print_language_string_list($album->get('title'), $prefix."albumtitle", false) ?>
`
how do i make this fit the new coding?
thanx!

Comments

  • got it:
    `
    <?php
    if ($album->getParent() == null){
    echo gettext($album->get('title'));
    } else {
    print_language_string_list($album->get('title'), $prefix."albumtitle", false); }
    ?>
    `
  • acrylian Administrator, Developer
    `print_language_string_list` is not that new actually. If you don't use that you disable possible multilingual use of titles for those albums
Sign In or Register to comment.