Prevent this album from being displayed in the Image Block

rrova

Joined: 2006-01-15
Posts: 3
Posted: Sun, 2006-01-15 12:11


Gallery version = 2.0.2 core 1.0.0.2
PHP version = 4.4.1 cgi PHP Info link
Webserver = Apache/1.3.33 (Unix)
Database = mysql 4.0.25-standard-log
Toolkits = ArchiveUpload, NetPBM, Gd
Operating system = Linux infong 2.4 #1 SMP Thu Jan 13 08:59:31 CET 2005 i686 unknown
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5

I am confused about the purpose of the "Edit Album" option "Prevent this album from being displayed in the Image Block". I interpret it to mean that if checked, the album will not be shown in the parent album display. But it is not working that way for me (even if I log out and check the display as a guest). In fact, I cannot see any effect from this option at all.

Is there a way to prevent an album from displaying a thumbnail in the parent, but still be accessible via an external link?

 
rrova

Joined: 2006-01-15
Posts: 3
Posted: Sun, 2006-01-15 13:59

Here's my workaround. I added kludge code to album.tpl to explicitly exclude a certain title from the album:

{foreach from=$theme.children item=child}
{* WARNING: KLUDGE child title is NOT "Etchings" *}
{if !($child.title == "Etchings")}

-- normal code goes here

{/if}
{/foreach}

Not sure if there is a better way...

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2006-01-15 14:02

no, the purpose of this option is to ..."Prevent this album from being displayed in the Image Block"

what is the image block?
site admin -> modules -> enable the image block module,
site admin -> themes -> matrix, add the imageblock to your sidebar

 
rymalia

Joined: 2006-06-07
Posts: 4
Posted: Sun, 2007-01-07 23:17

I thought I was having problems with this too, any albums I had set to prevent from being shown in the sidebar were still showing up in the random image block.

But then after re-saving the "Prevent this album from being displayed in the Image Block" on the albums I wanted excluded, now they work correctly, they're not in my random image block anymore.