Share » Forums » Setup & design » Adding an image to the folder...

Adding an image to the folder class/template.

Adding an image to the folder class/template.

Wednesday 10 August 2005 4:10:37 pm - 3 replies

Modified on Wednesday 10 August 2005 4:15:59 pm by Armageddon Design

Author Message

Armageddon Design

Wednesday 10 August 2005 4:48:54 pm

Okay. I think I found the correct code (and am figuring out how the codes work) and I think I have it in the right spot. Here's the code:

{attribute_view_gui attribute=$node.data_map.image}

I also left out the "image_class='small'" code. Do I have to have the image_class attribute in the code? I want the image to show up the exact size I uploaded it at. Or do I need image_class to set a CSS class attribute so that I can handle the image with CSS? I'm a little confused.

Am I going in the right direction?

http://armageddondesign.net/

David Eriksson

Thursday 11 August 2005 12:48:39 am

You can use image_class='original' to make sure it shows up in its original dimensions - I'm not sure what size it picks as default if you supply none.

Check what source code your templates output, and I'm sure you can find a way to address the image with CSS. eZ is typically riddled with class definitions and divs.

/David

Armageddon Design

Thursday 11 August 2005 7:51:33 am

Thanks, David. I'll try that out.

Also, late last night, I had a brainstorm and figured out to just wrap the image code in a SPAN tag and control that with CSS.

Again, thanks!

http://armageddondesign.net/

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu