Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Grid View 03 Jun 2013 18:26 #7307

can anyone help???
I find the way / or not possible, I want to at the hearing collation (grid) to make columns with content, to display 4 columns and 4 cells, believe it is possible :( ? thanks in advance :unsure:

Please Log in or Create an account to join the conversation.

Re: Grid View 03 Jun 2013 21:54 #7308

auto answer, please see this post .... I found a solution ...
<? php
$ k = 0;
for ($ i = 0, $ n = count ($ this-> items); $ i <$ n, $ i + +):

$ row = & $ this-> items [$ i];




Change to:

<table>
<? php
$ k = 0;
for ($ i = 0, $ n = count ($ this-> items); $ i <$ n, $ i + +):
if ($ tdcount == '3 ') {echo "<tr> <td>"; $ tdcount == '1'} else {echo "<td>";}

$ row = & $ this-> items [$ i];




then find:


<? php
$ k = 1 - k;

and change to:


<? php
$ k = 1 - k;
if ($ tdcount == "3") {echo "</ td> </ tr>";} else {echo "</ td>"; $ tdcount + +;}

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.088 seconds

Although I found this tool some time ago I just started learning experimenting and building this first component on Monday and now on Thursday afternoon it's already online. Although I already had a working version done with another tool this is much easier to build and at the end you have the freedom to own your own component. Once you know how to use Cook you will boost your productivity as the learning curve is really moderate compared to many other tools.
Giori (Forum)

Get Started