I have a single template:
/fitness/index
And there is a classes channel, with lots of categories. The template a bunch of links to show those channel entries in that same template, filtered by category. For example:
/fitness/category/women
This link shows the “women” category, using the /fitness/index template.
Other links show you the other categories in various groupings.
Question is: at the top of the page, I want 2 images, with links, and I want each category to have its own pair of images/links. How can I do that? I know I can assign an image to a channel, but I need more than that. I need 2 images, and I need to have the URLs that are in the links tags for those images be editable by the client. The links will point not to the template showing that channel, but to any random place.
So far all I can come up with is to create a “promos” channel with 4 fields, to hold the 2 images & the 2 link URLs, and make an entry to correspond to each category and use conditionals to say, “if category X, show the ‘promos’ channel entry with this ID#”.
But that’s so messy, I’d have to hard code all those conditionals, and then what if we change the categories?
Is there a better way? A way to get more functionality from the categories? Is there some way to do this more cleanly that I am not thinking of?
Any suggestions you have about how to do this intelligently are welcome.