No album thumbnail & more

ptn

Joined: 2009-09-29
Posts: 7
Posted: Mon, 2009-10-05 21:06

Tasks:

Force G2 to display text link only for each album. I DO NOT want a thumbnail displayed (see link below for example).

Display all 3 of my albums side-by-side. As it is right now, there are two albums, then a return then the 3rd album. I want all three albums on a single line.

Thank you for the help in advance...

Here's the environment:
http://marke.com/work/

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22892
Posted: Mon, 2009-10-05 23:19

You could check to see if the item has sub items with:

{if $child.canContainChildren}
...
...
{/if}
then us that to wrap around the image
image start with 
[code]{g->image item=    

Most themes have a setting for rows and columns, so it might be easier to use a theme that has these settings.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
ptn

Joined: 2009-09-29
Posts: 7
Posted: Wed, 2009-10-07 14:57

I have explored the theme (in this case Siriux) and I cannot seem to control the amount of albums displayed on a given row. Likewise, I cannot find a way to lose the thumbnail to the left of the name of the album no matter what I try. Thanks for the help in advance.

~ Scott

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Wed, 2009-10-07 16:01

The matrix theme allows you to control the number of rows and columns on a page.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
ptn

Joined: 2009-09-29
Posts: 7
Posted: Wed, 2009-10-07 16:14

I know. But it's too busy and the cleanest among the available themes is Siriux. The only thing I need to do is add code to the album.tpl file that will dictate (static command is file too) my items per row. Any thoughts?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Wed, 2009-10-07 16:14
Quote:
Any thoughts?

Starting with the Matrix theme and cleaning that up seems like it would be less work than modifying the Siriux theme to add in functionality that the author of that theme yanked out.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
ptn

Joined: 2009-09-29
Posts: 7
Posted: Wed, 2009-10-07 16:18
nivekiam wrote:
Quote:
Any thoughts?

Starting with the Matrix theme and cleaning that up seems like it would be less work than modifying the Siriux theme to add in functionality that the author of that theme yanked out.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Fair enough. Just been at it a while and thought adding a small contingency to the Siriux code would be less work, since it is the only item left on my theme wish list as yet unresolved. Thanks for the dialogue nevertheless.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Wed, 2009-10-07 16:26

Otherwise if you want to be able to control how many columns are in a row I can only think of 2 other methods.

-- Put stuff in a table

-- Making calculations based on width of your layout, dividing by the number of items and setting the width of stuff to be no more than that.

Say you have a width of 750px to play with and you want 4 items in a row. 750/4 = 187.5 That is the absolute MAX width any "cell" can be. So you'd need to make sure that your thumb or text took up less space horizontally than that.

So popping your page open in Firefox with the Firebug extension installed, it looks like it would be the css class named gallery-album that you'd want to control.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
ptn

Joined: 2009-09-29
Posts: 7
Posted: Wed, 2009-10-07 16:48

FIREBUG ROX!

Solution:

.gallery-album {
	width: 26%;

Where "26%" was the CSS that needed changing. Likewise, I added "text-align: center;" to center the albums. Thanks for the help. I use Firebug too, but your skill pointed me nicely. And I avoided dreaded tables! W00t! Thanks a bunch. Open source. Man I love it.