Trying to create a very simple album view

trstn

Joined: 2010-06-14
Posts: 27
Posted: Thu, 2010-07-01 17:53

My ultimate aim is a layout like this: http://www.jennydmakeup.co.uk/

I figured the easiest way to achieve that using gallery2 is to set the thumbnail height for the images at 500px, and use this to embedd the album... http://www.flashyourweb.com/staticpages/index.php?page=gallery2_embed-o-rator

That works, kind of. Unfortunately there's a lot of extra information in the album view I don't need (like gallery title, image name, view as admin/guest).

I've looked through album.tpl, made a few edits but not spotted big changes; is there an easy way to just see thumbnails on album pages, without a click through, and with no extra info?

Thanks for any help

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2010-07-01 19:23

Post a url to what you have so far.
What theme are you using. I doubt there is a magic bulit to remove what you don't want so you will have to edit the album.tpl file and go from there.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2010-07-01 22:21

I'm sure gallery could feed something like this instead.
Far better looking.
And no awkward scrolling.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
trstn

Joined: 2010-06-14
Posts: 27
Posted: Fri, 2010-07-02 21:34
floridave wrote:
Post a url to what you have so far.
What theme are you using. I doubt there is a magic bulit to remove what you don't want so you will have to edit the album.tpl file and go from there.

Dave
_____________________________________________

So far.... http://www.industryportfolios.co.uk/gallery2/beauty.php

I built the original website for a friend, but it's flat html and annoying for her to update, since discovering gallery2 I thought I'd sort it out for her.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2010-07-03 02:49

trstn,
you have a few issue to deal with.
1. when you edit a file read the top about creating a copy and editing it and saving to a local direcotry.
2. Look at the html you have created by viewing the source. here is an example:

        <!-- End Gallery's Head -->
    </head>
    <!-- End Your Html Head -->
    <!-- Your Html Body  -->
    <body>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

You are closing the head then opening it again.

3. edit album.tpl and remove the stuff you don't want. For example you don't want the title of the items so remove:

		{if !empty($child.title)}
		<p class="giTitle">
		  {if $child.canContainChildren && (!isset($theme.params.albumFrame)
		   || $theme.params.albumFrame == $theme.params.itemFrame)}
		    {* Add prefix for albums unless imageframe will differentiate *}
		    {g->text text="Album: %s" arg1=$child.title|markup}
		  {else}
		    {$child.title|markup}
		  {/if}
		</p>
		{/if}

then I assume you don't want the date/owner and other data, remove:

                {g->block type="core.ItemInfo"
                          item=$child
                          showDate=true
			  showOwner=$showOwner
                          showSize=true
       		          showViewCount=true
                          showSummaries=true
                          class="giInfo"}

That should get you started and you should be able to go from there.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
trstn

Joined: 2010-06-14
Posts: 27
Posted: Tue, 2010-08-03 16:24

Thank you kindly floridave, great base to start learning from.

Learnt a lesson too, not to be too clever with automated tools, only ends with bad code.