
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] passing category id to next page - 3-level category tree
Quoting Lukasz Z (dugi@prion.pl):
> HI THERE!
>
> Continuing the problems with 3-level categorty tree. I built a database with
> such a strucrture:
>
id name parent_id
1 skiing 0
2 skis 1
3 boots 1
4 googles 1
5 racing 2
6 slalom 2
7 kids 2
8 snowdoarding 0
9 boards 8
10 boots 8
11 softboots 10
12 hardboots 10
You apparently tried to line this up with a proportionally spaced
font, and I fixed it.
This is perfect structure for the tree tag:
[tree start=0
table=??????
master=parent_id
subordinate=id
autodetect=1
spacing=4
full=1]
<tr>
<td>
[if-item-param mv_level]
[item-calc]
return ' ' x [item-param mv_spacing];
[/item-calc]
[/if-item-param]
[item-param name]
</td>
<td>
mv_level=[item-param mv_level],
mv_increment=[item-param mv_increment],
mv_children=[item-param mv_children]
</td>
</tr>
[/tree]
</table>
Save that data in a table and you are in business. See the messages about
the tree tag last week.
--
Red Hat, Inc., 3005 Nichols Rd., Hamilton, OH 45013
phone +1.513.523.7621 <mheins@redhat.com>
Unix version of an Outlook-style virus:
It works on the honor system. Please forward this message to everyone
you know, and delete a bunch of your files at random.
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users