Add entry to multiple categories and only show specific parts of a section

3 posts by 2 authors in: Forums > CMS Builder
Last Post: February 23, 2010   (RSS)

Re: [Hansaardappel] Add entry to multiple categories and only show specific parts of a section

By Chris - February 23, 2010

Hi Hansaardappel,

Category Menus are only useful when there's only one "view" for your data. I think you'd be better off with a Multi Record section, which gives you a lot more versatility. You can add fields for "conference", "year", "match", and "date". Alternately, you could use dragSortOrder instead of having a "date" field.

When you're listing by Actual Date, you can orderBy "date" (or "dragSortOrder" if you've gone that route), then generate headings while iterating through your records by printing the conference or year if it's different than the last record's conference/year.

When you're listing by Upload Date, you can orderBy "createdDate" and generate headings the same way.

Finally, you'll also be able to filter your results using this approach. You can specify in a where clause (or often just in the query string of a webpage) that you want to only list records which have conference="Australian Open" and year="2009".

Please let me know if you want more details on how to do any of this.
All the best,
Chris

Re: [chris] Add entry to multiple categories and only show specific parts of a section

Thanks, I'm gonna give it a shot!