Re: [Izadorra] Coding dilemma setting up CMS pages
Hi Izadorra,
How many categories are you starting with, what are they, and are they flat (one-level) or subcategories (categories under categories)? Assuming they're one level deep, you can do it like this:
Create a new section for "Categories" with fields for "Category Name" and "Category Summary". You'll be able to automatically create a category list page for this section just like you can for other sections.
Then in the Writings section add a field called "categoryNum". Set it to field type "List", then set the "List Options" pulldown to "Get options from database (advanced)". Then select your category table, the "category num" field for the value, and the category name field for the label.
End result, you should have a pulldown of category names in the Writing section that is pulled from the category section. I hope this all making sense, still. :)
Then you can filter the results on the writing page by linking to it like this: writingList.php?categoryNum=1
Give it a try, take it one step at a time and let me know how far you get. If you have problems I'm here to help.
Let me know how it goes or if you need more detail or explanation.
Dave Edis - Senior Developer
interactivetools.com