Re: [invisions] List All Titles in Section
Hi invisions,
I used the '_link' psuedo-field in the above example; this field is populated by CMS Builder based on what you've set for your section's Viewer Urls. You'll need to either set this up for your section (Admin > Section Editors > your section > Viewer Urls) or generate your URLs with custom PHP code any time you need to output them. The former is much simpler. :)
---
Subcategorization is definitely possible. The usual approach is to create a Category (Multi Record) section, populate it with your categories, then create a List field in your Article section called "category" which is set up with:
Display As: Pulldown
List Options: Get options from database (advanced)
Section tablename: Category
Use this field for option values: num
Use this field for option labels: title
Now you can create a list viewer for your Category section and change the from:
<a href="<?php echo $record['_link'] ?>">
to
<a href="
article_list.php?category=<?php echo $record['num'] ?>">
Where "article_list.php" is the URL to your existing article list viewer. Voila!
Once you have this working, you can consider having one page show both your list of categories and your list of articles from that category. If you want help with this, please post both your list page viewers' full PHP sources (as attachments please).
I hope this helps! Please let me know if you have any questions.
All the best,
Chris