Get rid of filename in album display.

jamzyamz
jamzyamz's picture

Joined: 2004-01-12
Posts: 154
Posted: Fri, 2005-05-06 07:55

Is it possible to remove filename under thumbnail without also removing album names, from parent directories?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2005-05-06 14:13

Yes, quite easily. You need to edit the albumBody.tpl for your layout.

(assume's you're using the Matrix theme)
1) Create a local directory here:
/gallery2/layouts/matrix/templates/

2) Copy the albumBody.tpl from /gallery2/layouts/matrix/templates/ to here /gallery2/layouts/matrix/templates/local/

3) Edit it in your favorite editor and change this (it's in about the middle of the page around line 110:

        {if !empty($child.title)}
          <p class="giTitle">
            {if $child.canContainChildren}
              {g->text text="Album: %s" arg1=$child.title|markup}
            {else}
              {$child.title|markup}
            {/if}
          </p>
        {/if}

to this:

        {if !empty($child.title)}
          <p class="giTitle">
            {if $child.canContainChildren}
              {g->text text="Album: %s" arg1=$child.title|markup}
            {/if}
          </p>
        {/if}
 
fableman

Joined: 2005-04-29
Posts: 25
Posted: Thu, 2005-05-12 13:44
 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2005-05-12 14:06

It looks like you can edit your them.css for you theme, Matrix and edit the giDescription portion. Be sure to create a local directory as I stated before. This way upgrading will not overwrite your changes.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2005-05-12 15:25

For imageblock, check the instructrions in Site Admin / Random/Popular.

 
fableman

Joined: 2005-04-29
Posts: 25
Posted: Fri, 2005-05-13 06:43
mindless wrote:
For imageblock, check the instructrions in Site Admin / Random/Popular.

thank you.