[SOLVED] -> Tweak Theme -> indicate hidden items on album view

j.e.f.f

Joined: 2008-02-20
Posts: 1
Posted: Wed, 2008-02-20 17:00

Hi folks

How do I determine if an item has been flagged as hidden from within a template? What I'd like to tweak the thumbnail list display so that a logged-in user can quickly identify which items have been flagged as hidden.

I have spent a couple days on this trawling through the forums and documentation, and I have been unable to figure out a way to identify this flag. I have taken a look at the hidden module source code, and I have found this method in HiddenHelper.class:

    /**
     * @see HiddenInterface_1_0::isHidden
     */
    function isHidden($item) {
        return array(null, $item->hasOnLoadHandler('Hidden'));
    }

but as a PHP novice, I don't exactly know how to reference this class and call the method.

I'm using Gallery 2.2 installed standalone on a LAMP server and a customized Siriux theme

** UPDATE **

Found the answer in the forums here:
http://gallery.menalto.com/node/68025