One Entry -> Multiple Categories
I am working on a website that has entries assigned to multiple categories. For instance, I have a People channel that contains an entry for 'John Doe'. 'John Doe' is assigned to the 'Board of Directors' Category and the 'Management Team' category. If I change the order of 'John Doe' in the 'Board of Directors' category, his order changes in the 'Management Team' category as well. Is there any way to do this properly without creating multiple duplicate entries or multiple low reorder fields in the channel?
Replies
Low 16 Aug 2011 16:40
Hi Joshua,
I'm afraid the per-category sorting only works properly if the entry is assigned to just one category. The order is stored in the reorder field, and can only hold one integer for the sort order.
I will consider this for a next version, although it would mean a major update, as I'd probably need to reconsider the orderby="low_reorder_field" approach.
Brendan Underwood 5 Dec 2011 01:31
Bugger, well that's answered one of my questions. I have a product sheet catalogue of sorts where entries can be categorised by Brand, Type, Material and Rating. Using Reorder was an option for us to order the entries the way the client wants them listed.
Low 5 Dec 2011 08:08
Hey Brendan,
Well, it would work if you created a reorder field for each of those (what I assume are) category groups. As long as an entry has 1 brand, 1 type, 1 material and 1 rating, that would work.
Brendan Underwood 5 Dec 2011 08:18
Unfortunately not. An entry could potentially be rated under a few different ratings, and could be multiple types and/or industries (which was a category group I forgot about).
I suppose if I was to go to the effort of reordering all the entries into one master index, I assume the channel entries tag will still honour the 'category' parameter and show only entries that are categorised by the item in the parameter, then ordered by the reorder index? (if that makes sense).
Low 5 Dec 2011 08:19
Yes, that's exactly what would happen.