----- Original Message -----
From: "joseph speigle" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 04, 2003 9:33 AM
Subject: Re: [Templates] Newbie TT2 MVC question ( layout/handler problem)


>> If I could take a separate issue, maybe it would be better to not have
subcategories and categores differently.  A subcategory is a category
without a parent.  Make a second table aside from your category table with
two columns, parent_id and child_id.  Whenever you present the "stuff" for a
category (the "lists") if there is no parent (as per the second table) then
present the list -- otherwise, keep breaking down the lists and presenting
the subcategories, which are really 'categories' with parents.   This
follows because a category and a subcategory hold the same information, no?
Also it solves the problem of what to do when you have a category which has
no subcategories?  (user won't have to navigate an extra page to see the
"lists").  And, it really simplifies the code, you have no double names like
cat.pl and subcat.pl.  But, it does require coding for the second
"relationship" table, unless you are programming server-side SQL and return
cursors.

The layout matches their existing sites/database - that is not a problem
here.

The problem is the seperation of presentation/logic/db layers so that a
design house can produce html layouts.




_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to