Unlimited nested sections

From: Date: Sat, 26 Jan 2002 20:36:54 +0000
Subject: Unlimited nested sections
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2580@lists.php.net to get a copy of this message
Hello, We have the following situation which is causing us lots of headaches, and hope that someone can help us. In our application we want the ability to display an unlimited number of categories and they can be nested within each. An example would be: Category 1 ---Category 1a ------Category 1a(i) Category 2 This means that Category 1 has a sub category called Category 1a, and Category 1a has a sub category called Category 1a(i), and this can continue to any depths. We were initially using the {section} loops, however, we would have to embed them within each other, and this gets messy. Is there some automated way to loop through these without having to embed sections upon sections upon sections? Any help or ideas would be greatly appreciated! Thanks, Brad

« previous php.smarty.general (#2580) next »