CodeNut
|
| Posted: 06/23/2003, 10:54 PM |
|
I am trying to display a grid of categories, which normally comes out in 1 column into 3. From there the results will be links to the sub categories.
I read the articles:
for CC is here: http://www.gotocode.com/art.asp?art_id=115& http://www.gotocode.com/disc_viewt.asp?mid=5712&
, and some info from Elena, but somewhere my attempt it is not working. Since the samples don't come with databases it makes it difficult to test & understand how it works.
Here are my specs:
The table name is category.
Field Name from table is category_name.
In the parts form I have the category_name as a label.
In the parts form I have an Open event that has:
$i = 0;
In the parts form I have a Custom Show event that has:
$point = $i/3;
echo "i: ". $i. " point: ". strpos($point, ".") . "<br>";
if (strpos($point, ".") == "")
{
$tpl->set_var("open", "</tr><tr>");
}
else
{
$tpl->set_var("open", "");
}
$tpl->set_var("category_name", tohtml($fldcategory_name));
$tpl->parse("DListForm1", true);
//-------------------------------
$i++;
I am not sure what the DListForm1 is at the end of the above, and could not find that within the yellowpage example code it came from.
Finally I did modify the html template to remove the <tr> as specificed.
Please provide detailed help as I am starting to hurt my brain as I bang it against the wall 
Thanks !
|
|
|
 |
RipCurl
|
| Posted: 06/27/2003, 1:05 PM |
|
Her examples use the classifieds sql demo available in your CC install. Just make a classifieds db and use that. I tried it out, and it works fine for me.
|
|
|
 |
|