How do I turn off some items displayed under each photo?

syotr

Joined: 2005-03-10
Posts: 14
Posted: Tue, 2005-03-15 14:32

Right now with the Matrix theme, each photo has under it the file name, then the filename again, then the date, then the number of views, then the check mark and "new".
I would like to display only the file name to allow more room form photos on a page. Which file should I edit/
Thanks

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2005-03-15 15:50

first do "edit captions" in each album and adjust the title/summary... sounds like they have the same value so you see the filename twice.
make a local template for layouts/matrix/templates/albumBody.tpl to remove date/views.
deactivate New Items module to remove "new" image.

 
Arnie7000

Joined: 2007-06-06
Posts: 2
Posted: Wed, 2007-06-06 14:37

Could you explain in more detail how to remove it?

 
JNavas

Joined: 2008-03-18
Posts: 6
Posted: Tue, 2008-03-18 23:01
Arnie7000 wrote:
Could you explain in more detail how to remove it?

To remove the display of both View Count and Date under thumbnails on the album page of the Matrix theme:

  1. Navigate in a file manager to "themes/matrix/templates"
  2. Create new directory "local" ("templates/local")
  3. Copy album.tpl from "templates" directory to "templates/local" directory
  4. Edit album.tpl in "templates/local" directory (not the original in the "templates" directory)
  5. Change
                    {g->block type="core.ItemInfo"
                              item=$child
                              showDate=true
    			  showOwner=$showOwner
                              showSize=true
           		          showViewCount=true
                              showSummaries=true
                              class="giInfo"}
    

    to

                    {if ($child.canContainChildren)}
                    {assign var="showView" value=true}
                    {else}
                    {assign var="showView" value=false}
                    {/if}
    
                    {g->block type="core.ItemInfo"
                              item=$child
                              showDate=$showView
    			  showOwner=$showOwner
                              showSize=true
           		          showViewCount=$showView
                              showSummaries=true
                              class="giInfo"}
    
  6. Saved changed file
  7. Navigate in Gallery to "Site Admin"
  8. Click on "Maintenance"
  9. For "Delete template cache" click "run now"
  10. Check the result

If you want to keep the date display, don't change the "showDate=" line.
Hope that helps!
-John