
Maris Kalnins
|
| Posted: 10/29/2002, 6:24 AM |
|
Hi guys!
I have a databse with pictures, what I want
is to display a grid which consist of 4 columns
and 3 rows where each cell represents one
record from a database!
I am wondering if any of you have a solution
for CCS?
If there is no solution, dont you think the feature
when you can specify not only how many records
would you like to display in a grid but also how many
columns you use, must be added to upcoming CCS version?
Thanks
|
|
|
 |
Maris Kalnins
|
| Posted: 10/30/2002, 10:47 PM |
|
Hi!
I am still wondering how you did that, could you send me
an example?
I tried to look how they implement their grid functionality
and found this:
<!-- BEGIN Grid model -->
<table width="90%" border="0" cellspacing="0" cellpadding="0"
align="center">
<!-- BEGIN Row -->
<tr align="left">
<td valign="bottom">
<center>
{a_link_open}<img src="pics/{face_bild}.jpg"
border="0"><br>{name}<br>{a_link_close}
</center>
<br>
</td>
</tr>
<!-- END Row -->
</table>
</center>
<!-- END Grid model -->
So you see, the grid begins with BEGIN grid marker and ends with END Grid
Each record is fetched withinn BEGIN Row and END row, so I cannot get
how can I specify that it will read first record in row 1, column 1. second
in row 1, column 2,
third in row 1, column 3, fourth row 1 column 4 and fifths it switches to
second row and first column
and continues with filling second row.
Yes, no doubt, if we move <!--BEGIN Row --> after <tr align="left"> and
<!--END Row--> before </tr> we get that there will be one long row and n
columns, but that's not the thing I want,
I want to strictly specify, how many columns and how many rows will I fill!
Any ideas?
Maris
> Hi Maris
>
> All you need to do is insert some columns/rows in the grid until you
> have the
> format you require, sometime using split cell/merge cell. Look under
> the table menu.
> Then insert your records in the cells and connect them to the database
> source.
>
> Jonathon
>
|
|
|
 |
Alexey Alexapolsky
|
| Posted: 10/31/2002, 4:40 AM |
|
This article may help http://gotocode.com/art.asp?art_id=189&
--
Alex,
Support Engineer
CodeCharge Team
"Maris Kalnins" <proximus@mail.teliamtc.lv> wrote in message
news:apm5mj$hg5$1@news.codecharge.com...
> Hi guys!
>
> I have a databse with pictures, what I want
> is to display a grid which consist of 4 columns
> and 3 rows where each cell represents one
> record from a database!
>
> I am wondering if any of you have a solution
> for CCS?
>
> If there is no solution, dont you think the feature
> when you can specify not only how many records
> would you like to display in a grid but also how many
> columns you use, must be added to upcoming CCS version?
>
> Thanks
>
>
|
|
|
 |
Maris Kalnins
|
| Posted: 10/31/2002, 5:30 AM |
|
Hi!
is this the only solution?
dont you have a code change for php not asp?
Maris
|
|
|
 |
|

|