10 years ago
4
Topic
Hi !

I've got a little problem with the management of an image gallery (field image + field X and typo) in my content : i would like to order the thumbnails in 2 columns on the right, with the main content (text) floating on the left of the thumbs.

I tried with a position override (of the mainbody.php), but did not succeed. I can only get different field, and show them in a certain order.

So my question is : is it possible to do such a thing with a position override, and if not, how can i do (css maybe ?) ?! :)

And another question : when i do a "echo $cck->thumb1('field_name')", i get an output with the 'image_field", but nothing using 'field_x' : is it "normal" ? Where are stored the thumb of the 'field_x' ? Same with the getvalue : got the output "Array" with the 'field_x', and the url of the picture with the 'image_field'.....

Thanks !
Get a Book for SEBLOD
10 years ago
1
Level 2
Wow thanks, could not have found it myself !

So the only question remaining is about the display arrangement of the thumbs ! :)
10 years ago
0
Level 4
So I played with HTML tags, and succeed in setting up
class to display the different field of the display.

The only thing i wish to do is to display the thumb (with coorbox effect) with a padding of 5px between each of them.

I tried :

<img src="/<?php echo $cck->getTypo('field_x'); ?>" style="padding:5px;" />

But padding doesn't work, and the first thumb is bugged (no colorbox, and the title appear near the thumb).

Any idea on how to do this ?
10 years ago
0
Level 1
Ok after some experimentation, i used css to order the thumbs, with this command :

#cck3_field_x img {padding: 5px 5px 5px 5px;}

Is there any possibility to add an "nth-child" command in it, to choose a specific thumb inside the table ?

Thanks for the help !
10 years ago
0
Level 1
Any advice please ?
Get a Book for SEBLOD