The question I would ask is how scalable do you need this to be? You mention 26 categories, will this change/expand. In your current solution any updates to these categories, e.g. add,change, delete, would require modifying the category tree and also the site tree and dmHTML content items.
If you make categories web visible, by creating display methods and setting FU's on, then all you would need to do is update the category tree. If you do this a simple news publishing rule or getContentObjects(...) to select news items that have a category that matches the request.stobj.objectID (which will be the categoryID). You can also create sub-navigation directly to these category items using skin:genericNav by passing the in the parent category node objectID in to retrieve the nav query object for the category tree. I have done the above a few times, cannot remember the exact details, but it is the easiest solution for content editors to maintain. Chris. On Monday, 18 February 2013 13:24:42 UTC, Sean Coyne wrote: > > It's just not as straightforward as some of the other options. As Chris > noted, you don't need 26 webskins for 26 categories. You just create one > and it will work for all (just like you have one or more webskins for > dmHTML but you dont have one for each HTML page, right?). > > You can also do what Geoff is suggesting, create your 26 HTML pages and > assign a category to each (a field to pick a category already exists in the > dmHTML content type). Then, create an HTML webskin that uses that assigned > category to grab the relevant news items and display them. > > Both of these will certainly be easier than trying to match on just the > category label, which, of course, could be duplicated within the site. > Easier to use a unique ID for each. > > On Monday, February 18, 2013 6:58:45 AM UTC-5, Marco van den Oever wrote: >> >> Thanks again all for answering, i think i didn't set up the site in a >> correct way then. >> What i did: >> >> - with quick site builder build a nav item "categories" with 26 child >> items all with a dmhtml page >> - went to the categories page and added a dmnews listing rule to show all >> categories, went to each category page and added a dmnews listing rule for >> that specific category >> >> This is not correct? >> >>> -- You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: [email protected] To unsubscribe, email: [email protected] For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry --- You received this message because you are subscribed to the Google Groups "farcry-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
