laying out images in rows and colums

kp1kp1

No avatar

2008-04-08 23:26

hi,

i have searched the forum but cannot find anything in english. i am trying to layout the thumbnails of images in a rows and colums like on this page here http://www.bwa.rzeszow.pl/?p=p_499

can anyone help me on hbow to to this please? i am not very good with php or css but undertand a little bit

thanks

KP

» Quick.Cms v2.x

kp1kp1

No avatar

2008-04-08 23:36

I am trying to make image galery (galeria) like on this webpage http://www.prodwodrol.pl/galeria-zbiornikow-2,122.html

what do i need to do to layout my pictures like this page?

kp

cgan

Avatar: cgan

2008-04-09 07:54

kp1kp1 - check this topic: http://opensolution.org/Quick.Cms/forum/?p=readTopic&nr=372
I had the same problem.

cgan

kp1kp1

No avatar

2008-04-09 10:54

cgan
i have seen that topic but i am finding it difficult to configure as i am not very experienced with css, maybe you can help me?

thanks

kp

cgan

Avatar: cgan

2008-04-09 13:29

kp1kp1 - in templates/default.css find this:
/* IMAGES STYLES */
.imagesList{list-style:none;}
.imagesList li{margin:0 0 5px 0;background:inherit;color:#5b5b5b;font-size:0.917em;}
change last row to this:
/*.imagesList li{margin:0 0 5px 0;background:inherit;color:#5b5b5b;font-size:0.917em;}*/
then add this row:
.imagesList li{float:left;height:150px;width:100px;margin:0 10px 10px 0;background:inherit;color:#5b5b5b;font-size:0.917em;}
Then for example in templates/pages_default.tpl find this:
<div class="content">$aData[sDescriptionFull]</div>
Change to this:<div class="content" style="clear:left;">$aData[sDescriptionFull]</div>

cgan

kp1kp1

No avatar

2008-04-09 15:01

cgan

thank a lot for your help, i am now getting cloe to what i want to do, thanks alot again
but i have one problem the images are showing above the heading (e.g THE HUNT). i want the pictures to show after the heading (THE HUNT). this heading is #page h3.

this picture here show what i want to do

http://img411.imageshack.us/my.php?image=demoyu8.gif

My code from css is

.imagesList{list-style:none;}
.imagesList li{float:left;height:150px;width:180px;margin:10px 5px 10px 5px;background:inherit;color:#5b5b5b;font-size:0.917em;}
.imagesList li img{border:2px solid #dcdac9;}
.imagesList li div{text-align:justify;}

#imagesList1{float:left;margin:40px 10px 0 0;}
#imagesList2{float:right;margin:40px 0 0 10px;}

please can you help, thank you very much

kp

cgan

Avatar: cgan

2008-04-09 16:05

kp1kp1 - in templates/pages_default.tpl find this:
<div id="page">
$aImages[3]
$aImages[1]
$aImages[2]
<h3>$aData[sName]</h3>
Change to this:
<div id="page">
<h3>$aData[sName]</h3>
$aImages[3]
$aImages[1]
$aImages[2]
That means you move the heading above the images. Hope that will work for you.

cgan

kp1kp1

No avatar

2008-04-09 16:10

cgan, wow that is great, thank you very much for that -= IT WORKS!!!!

how can i find out more about the pages_default.tpl and modifying the file? i want to learn more.

also what do the 3, 1 and 2 in the brackets mean?

kp

cgan

Avatar: cgan

2008-04-09 16:25

You can copy e.g. "pages_default.tpl" and change the name to e.g. "your_pages_default.tpl" and adjust that file as you like. For example the heading above the images. Then you choose that tpl file in admin/pages/yourpagename. To the right you find four tabs: Option, View, Files, SEO.
Click View and a bit down you'll find Template. There you choose "your_pages_default.tpl".

You'll find a lot here: http://opensolution.org/Quick.Cms/docs/?id=templates
This is one of the best and easiest CMS so far.

cgan

kp1kp1

No avatar

2008-04-09 17:35

cgan,

thanks again, very interesting document, i have been playing with it, so if i wanted to arrange like this

Heading

Text

Pictures,

how do i do that?

KP

cgan

Avatar: cgan

2008-04-09 17:56

kp1kp1 - you can try edit the file this way:
<div id="page">
<h3>$aData[sName]</h3>
<div class="content">$aData[sDescriptionFull]</div>
$aImages[3]
$aImages[1]
$aImages[2]
Maybe you'll have to make some more corrections.

cgan

kp1kp1

No avatar

2008-04-09 18:07

great, that works, but how do i know what the lines in the codes mean?

there is explanation on http://opensolution.org/Quick.Cms/docs/?id=templates but not very detailed for learners

cgan

Avatar: cgan

2008-04-10 10:10

You can find out more by reading all at this address: http://opensolution.org/Quick.Cms/docs/
You can look at the variable "$aImages" by opening core/files.php.
But you have to learn about PHP-programming to understand.
Maybe somebody at Opensolution can tell about the differens between these:
$aImages[3]
$aImages[1]
$aImages[2]

cgan

treewood (OpenSolution)

Avatar: treewood

2008-04-11 08:42

$aImages[1] - this variable contains images list on the left
$aImages[2] - the same but on the right
$aImages[3] - the same but in the bottom (this is available in Quick.Cms paid version)

kp1kp1

No avatar

2008-04-11 20:42

great, thank you very much to everyone for al their help and contrinutions

kp1

cendp1am

No avatar

2009-12-28 20:03

Hi, this solution only gives gallery of images on the bottom of the page (ordered in rows and columns).

What how can I make a page with multiple galleries in order:

text 1
gallery 1

text 2
gallery 2

Thanks

Back to top
about us | contact