Do not use a thumbnail as the Album's link

ptn

Joined: 2009-09-29
Posts: 7
Posted: Tue, 2009-09-29 20:53

First off, thank you in advance for lending your expertise to my endeavor.

Three tasks:

1. DO NOT use a thumbnail (sampled from the album or uploaded myself) as the "clickable" area of a given album. In other words, I arrive at a list of my albums where typically one would click a thumbnail and enter that album. I want to only see text links as the linkable title of each album.

2. How can I substitute text for the thumbnail used to link to an album? I know this seems obvious since question #1 is essentially sharing this task, but maybe it helps to treat them as separate items.

3. How do I completely HIDE/TURN OFF the sidebar?

Thanks again for your generosity.

~ Scott

 
ptn

Joined: 2009-09-29
Posts: 7
Posted: Tue, 2009-09-29 20:55

If I am being unclear, please sound off. I do not claim to be a purest, merely a user. Thanks.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2009-09-29 21:19

1) You can do this by editing your theme.
http://codex.gallery2.org/Gallery2:Editing_Templates

Edit album.tpl

2) Depends on what you want to put in there

3) Don't put anything in the sidebar. Site Admin > Themes > YourTheme > remove all blocks from the sidebar. But this may depend on your theme.

You may want to read up on Smarty here or use it for reference:
http://smarty.net/

If you put Gallery into debug mode a Smarty Debug popup window will popup and you can see all kinds of information available
FAQ: How to set/use Gallery in debug mode?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22888
Posted: Wed, 2009-09-30 01:30

1. edit album.tpl
this is the bit of code for the link and thumb:

		      <a href="{$linkUrl}">
			{g->image id="%ID%" item=$child image=$child.thumbnail
			 class="reflect rheight44 ropacity33 %CLASS% giThumbnail" style="display: block; margin-left: auto; margin-right: auto;"}
		      </a>
		    {/g->container}
		  {elseif isset($child.thumbnail)}
		    <a href="{$linkUrl}">
		      {g->image item=$child image=$child.thumbnail class="giThumbnail"}
		    </a>

The title is a bit lower depending on the theme.
This bit of code will check to see if the item is an album or a item:

{if $child.canContainChildren}
is an album
{else}
is a item
{/if}

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team