ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Simple Photo Gallery: Gallery Module or Weblog?

January 10, 2008 10:42am

Subscribe [10]
  • #31 / Feb 06, 2008 3:53pm

    Deron Sizemore

    1033 posts

    I have a quick question.  I noticed that your thumbnails are all of equal dimensions even though your images are not.  How were you able to accomplish this?

    I did this way easier. The photo’s are placed in a rectangular box with the property

    overflow:hidden

    the width is equal to the set height of the image in the Gallery

    The only point was that the image was placed against the left border of the box. To center the image I used a little bit of PHP, The example is for abox 64px x 64 px.

    {thumb_url}

    As you can see the left margin is the negative half of the width -32. If an image is 100 px wide, the margin wil be -(50-32) or -18px.

    That may be way easier for you, but it confused the heck out of me! 😉

  • #32 / Feb 07, 2008 9:49am

    Cliff Persaud

    13 posts

    I’ve made a portfolio page in the style of Slideshow pro fully based on the Photo Gallery. The thumbnails, full images and pagination are addressed through the Gallery tags.

    I didn’t go this route I but used phpthumb to generate my thumbnails

    <a href="http://{id_path=portfolio/index}">_/phpthumb/phpThumb.php?src={image_url}&w=30&sx=50&sy=50&sw=250&sh=250&aoe=1_</a>


    And the large image is generated using

    {image_url}

    The problem I have is pagination.  How did you accomplish having the large image and small thumbnails appear on the same template along with pagination.  Was this a non issue since you used EE native gallery tags all throughout?

  • #33 / Feb 07, 2008 11:02am

    noregt

    360 posts

    I used the standard pagination functionality of the gallery.

    {if previous_page}
    <a href="http://{auto_path}">Previous</a>
    {/if}
    etc..

    The problem was how to force the right URL segments when clicking on a thumbnail and at the same time using the right template and weblog category, because I did not use the gallery templates. I ended up using both:

    <a href="{id_path=">

    Where the link picks up the right image number (segment_3) and the weblog category {segment_4}.

    But I didn’t use any specific gallery categories yet, which would mix things up even more. But maybe, with an extra segment it will be easy.

    That’s why I’m interested in testing it through the regular weblog fields.

  • #34 / Feb 08, 2008 7:44pm

    Cliff Persaud

    13 posts

    I think I’m nearing the limits of my EE understanding.

    I know this is super simple but can’t seem to figure it out.  All I want is a series of thumbnails on the left and a large preview on the right of the page.  When the user clicks on a thumbnail the corresponding large image is shown.

    The template I’m using to generate this is called gallery-index in the group portfolio
    I’m generating the thumbnail using {image_url} then running through php thumb. 
    When the user clicks on the thumbnail link <a href=”{id_path=">
    I've got an image on the same page in which I want the source to changed everytime the user clicks on a thumbnail


    However here's what's happening is when the user clicks on a thumbnail. The large image changes but my thumbnails disapppear except for the one the user clicked on

    I think I've hit the wall. Any help at this point would be really appreciated.

    The site can be found at
    Here

  • #35 / Feb 08, 2008 7:54pm

    Cliff Persaud

    13 posts

    <a href="{id_path=">

    What’s your img src attribute look like then.

  • #36 / Feb 08, 2008 8:33pm

    Erin Dalzell

    790 posts

    I know this is super simple but can’t seem to figure it out.  All I want is a series of thumbnails on the left and a large preview on the right of the page.  When the user clicks on a thumbnail the corresponding large image is shown.

    You are looking for something like my site?

  • #37 / Feb 08, 2008 11:17pm

    Cliff Persaud

    13 posts

    You are looking for something like my site?


    Oh man am I ever that’s almost exactly what I’m looking for.  At some future point I’d need to add comments but essentially that’s the functionality I’m looking for.

  • #38 / Feb 09, 2008 12:23am

    tbritton

    714 posts

    However here’s what’s happening is when the user clicks on a thumbnail.  The large image changes but my thumbnails disapppear except for the one the user clicked on

    The site can be found at
    Here

    I checked your site, and the symptoms look like a typical case where your weblog:entries tags for the thumbnails need to include the parameter dynamic=“off”. That keeps it from updating to match the entry number in the URL, which you WANT for the main image, but not for the thumbnails.

    Terry

  • #39 / Feb 09, 2008 1:12am

    tbritton

    714 posts

    Using Gallery Relationships (a special case of relationships in EE) allows you access to the best of two worlds: Image browsing, organization, batch upload, and the ability to select a single image from a drop-down menu in a weblog entry. One can have as many of these drop-down selectors as one likes on a single weblog page. Unused ones are simply ignored. One can thereby use the strengths of the Gallery module AND the strengths of a weblog together.

    I have succeeded in getting relationships to work in placing photos in my weblog entries. This speeds up the workflow by allowing a relationship field to be how I position photos in a page, and lets me use the batch upload feature which I utilize after using FTP to upload a bunch of pics, as it is a nice, simple interface for adding titles, captions, etc.

    Read more at the Wiki link above if you’d like to try this out.

    Terry

  • #40 / Feb 09, 2008 1:19am

    Erin Dalzell

    790 posts

    I have asked about the comments in another thread but gotten no responses, so I don’t know if it is possible.

    My site does require a plugin that I wrote. And I would like to change it so that I can deal with nested categories so I can have two Januaries.

    Do a search for gallery_categoree to find my plugin and I will send you my template later.

  • #41 / Feb 09, 2008 2:00am

    tbritton

    714 posts

    I have asked about the comments in another thread but gotten no responses, so I don’t know if it is possible.

    My site does require a plugin that I wrote. And I would like to change it so that I can deal with nested categories so I can have two Januaries.

    Do a search for gallery_categoree to find my plugin and I will send you my template later.

    Category fields can have the same Category Name, but must have different Category URL Titles. So, you could change the Category URL Titles of your month categories to reflect the year, perhaps. Then the categories will allow you to use the same Category Names.

    Category Name = January
    Category URL Title = january-2007
    Category Name = January
    Category URL Title = january-2008

    Would that help you out?

    Terry

  • #42 / Feb 09, 2008 10:47am

    Erin Dalzell

    790 posts

    That does help a little, but ideally I want URLs like http://mysites.com/gallery/cat/2007/January.

  • #43 / Feb 09, 2008 12:07pm

    tbritton

    714 posts

    I see. Why wouldn’t http://mysites.com/gallery/cat/January/2007 suffice? That way, the year can be a child category of the month and things can remain mutually exclusive.

    Terry

  • #44 / Feb 09, 2008 12:13pm

    Erin Dalzell

    790 posts

    How would I do February then? A category can only have one parent.

  • #45 / Feb 09, 2008 12:17pm

    Cliff Persaud

    13 posts

    Do a search for gallery_categoree to find my plugin and I will send you my template later.

    Thanks so much

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases