code to create 'photo gallery-like' with EE entree tags

Another question about Expression Engine. And Freeway. I am very grateful for all the help I’ve got here.

I know that EE has a Gallery module, which makes it possible to show images in a grid. They use {row} for that purpose, which creates a table like structure. I want to achieve the same design effect, using -cropped- images from my ordinary weblogs.

So far I managed to show these images on a FW generated page, I’ve put the code to get the desired images inside a single mark-up element which lives in a DIV . But what I get is one row wide, and all the images show up as one long column. (obviously… :slight_smile:

I want something like a row with 5 images, then fill the next one. As the grid of an ordinary table. My final goal is to show one grid for each year.

Any idea how to insert the right code inside my FW page in order to force EE to create a nice table with the data?

best regards

Hansl


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

This is more complicated than I first realized. I thought you were asking how to get multiple rows from the Gallery, which is pretty easy.

You’d have to get the dynamic part happening from EE, I think. EE might give you a count on objects you can use. Are all these images in one entry or are they in separate entries?

Just wondering, why aren’t you using the Gallery module for this?

You may also want to dig around the EE support area, including their forums. This may have already been covered there.


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I was thinking about this question over the weekend, and it occurred
to me that you might be able to get it to work using different CSS.
Have a look at my screencast about the inline layout: <http://freewaycast.com/screencasts/view/20-flexible-inline-objects

I was making a slideshow layout in that example.

Walter

On Dec 1, 2008, at 9:22 AM, Joe Muscara wrote:

This is more complicated than I first realized. I thought you were
asking how to get multiple rows from the Gallery, which is pretty
easy.

You’d have to get the dynamic part happening from EE, I think. EE
might give you a count on objects you can use. Are all these images
in one entry or are they in separate entries?

Just wondering, why aren’t you using the Gallery module for this?

You may also want to dig around the EE support area, including their
forums. This may have already been covered there.


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks, Joe and Walter for thinking about this.

@Joe The list of images come from three different weblogs. I use exp:imgsizer:size, which is an EE-extension to create thumbnails in the template itself. (Thumbs are stored in a cache) advantage is that I can decide per template how large the thumbnail shall be. And there is the use of exp:extract_url to cut the URL from the image which it gets when EE takes it from the database.

And yes, the thought occurred to me too. If I had choosen a structure for my site like three Galleries, then this problem was easy to solve. I was thinking of re-arranging everything, but I am afraid to loose what I have build now.

@Walter I tried to do as you described, I believe I created almost the same structure here before. Anyway, again the result is one row down. The container DIV does not strech to the side. This is my raw code, before processing by EE. (I applied your Anonymous, hence no DIV name for the inner -repeating- DIV)

{exp:weblog:entries weblog="nieuws|skulptuur|monumenten" disable="categories|category_fields|member_data|trackbacks" dynamic="off"} {/exp:weblog:entries}

dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

On 1 Dec 2008, 1:23 pm, Joe Muscara wrote:

You may also want to dig around the EE support area, including their forums. This may have already been covered there.

http://expressionengine.com/wiki/Entries_In_Table/

I’ll give it a try, and I’ll come back here.


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

It’s hard to tell from your unrendered code, but are you floating all
of these images left? That’s critical to this layout doing anything
useful.

Walter

On Dec 1, 2008, at 11:07 AM, atelier wrote:

@Walter I tried to do as you described, I believe I created almost
the same structure here before. Anyway, again the result is one row
down. The container DIV does not strech to the side. This is my raw
code, before processing by EE. (I applied your Anonymous, hence no
DIV name for the inner -repeating- DIV)


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

That was it, Walter. Made the structure again, now got a nice result!

http://www.atelier.box.nl/haal_op/Afbeelding_8.png

The reason why there are spaces between the images is because that particular image is not present in the database. The title is present, as you can see.

I tried the EE solution, the PHP script gave an error, the other one made also a nice tabulair structure, but the last row was about 23 images wide and went over the border of my page. I really have to dive into that one to make it work.

I like your solution best, because it’s an elegant one and I think (…) I understand it too :slight_smile:

I am very very happy with this…and I thank you again for the help.

all the best

Hansl


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options