I’m creating a site that includes a bunch of recipes for fish. When a visitor is looking at a certain kind of fish, the site owner would like a sidebar to display up to 3 recipes that are associated with that type of fish. If there aren’t 3 recipes for that type of fish in the system, they’d like the sidebar to display enough recipes from other kinds of fish to make a total of 3 recipes.
I thought I’d create a channel called recipes and populate that separate from my standard content channel. I’d assign a fish category to each recipe. I’m trying to figure out how I would then:
1) Load up to 3 recipes from a certain category.
2) If there aren’t 3 recipes, load 1,2 or 3 from the rest of the categories (not the one I originally tried)
3) Output summaries (pulled out of a summary custom field in the recipe) and links to the 3 recipes together as a group.
I think I can do it using conditionals, but I’m not sure how to pull from categories other than the one I tried initially. Will someone tell me how to do that?
Thanks,
Troy