[RESOLVED] Select Multiple Categories in Catalogues

Post

Posted
Rating:
#6815 (In Topic #1772)
Avatar
Standard member
mythus is in the usergroup ‘Community saint’

Please?

Hello,

I could have sworn I've seen this somewhere here before, but searching has failed me... so...

Is there a way to select multiple categories in catalogues, so that you could create a catalogue item that would exist happily in more than one category?

For example: I've got a weapons catalogue, and I have sword and martial arts weapons categories. The katana should exist in both categories. As things stand right now, I'd have to create the katana twice if I wanted to put it in both categories. However, IF I could select both those categories, then the katana would only need to be created once. This would also allow me to easily display which category of catalgoue I desire with the weapon showing up for either. 

 

Last edit: by mythus



Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!
 
"Those who want help should first be willing to give help."
Online now: No Back to the top

Post

Posted
Rating:
#6817
Avatar
Standard member
mythus is in the usergroup ‘Community saint’
Question: Is it possible to display items in one catalogue in another when using the catalogue embedded box in a page? The "Selectcode" feature makes it seem like it could be possible. If so, this could provide me with a solution, if only I knew how selectcodes worked…


Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!
 
"Those who want help should first be willing to give help."
Online now: No Back to the top

Post

Posted
Rating:
#6819
Avatar
Standard member
mythus is in the usergroup ‘Community saint’
Ok, thanks to a chat with Chris Graham ,

I have a work around for my situation. Selectcode and Filtercode.

Use the Selectcode to identify the categories I want to pull from…. example 12*,13*,14*
Use Filtercode to identify the meta_keywords I want to reference… example "meta_keyword#Armed Melee Offensive Skills"

Using those tools, I can put my catalogue entries in one category that they would appear in first, and call those entries to be with different categories on the pages that I need them on. This way I could have a skill that is in Unarmed Combat category show up in both the Unarmed Combat page and the Armed Combat page if that skill would fit both categories. This solves the need to also make duplicate entries.

It isn't as, um, nice? as say being able to select multiple categories when making catalogue entries, but it works! And it would allow me a little extra freedom even.

Thanks again Chris!


Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!
 
"Those who want help should first be willing to give help."
Online now: No Back to the top

Post

Posted
Rating:
Item has a rating of 5 (Liked by mythus)
#6827
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
So to answer the original question here…

No, we don't have multi-categorisation support for catalogues. Or most content types.
There's a tracker issue for it 0001888: Support node structure for all categories & full multi-categorisation. - Composr CMS feature tracker

Another workaround is to use reference fields. You can add a multiple references field to a catalogue so that you can specify all the catalogue categories that entry is referencing. Then you can pull things out based on that using various possible filtering techniques (Filtercode and also the CATALOGUE_ENTRY_BACKREFS symbol come to mind).

There's a lot of flexibility there but it gets complicated to use it all to the degree possible and involves a lot of different Composr technologies, such as advanced Tempcode and template editing.

I'd love to spend some time adding a lot more features that are immediately available without low-level stuff being needed. But it would really be a lot of time, like months of full-time work just on catalogues. To improve the level of flexibility to help people, a lot of complex abstract programming is needed, and a lot of different features to try and capture all the different kinds of things people would like to do.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#6830
Avatar
Standard member
mythus is in the usergroup ‘Community saint’
It's cool Chris Graham . There's a perfectly fine work around that accomplishes for me the same thing. Besides, it is actually closer to good database design anyhow. Database entries should never be duplicated, only linked or joined via relationships. Multiple catagory selection is a bad habit. Using Selectcode and Filtercode or as you mentioned above, reference fields, is good database design. I am rather quite pleased with the results of it.


Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!
 
"Those who want help should first be willing to give help."
Online now: No Back to the top
1 guest and 0 members have just viewed this.

Statistics

Users online:

mytracker, gabriel58, babu, ManojSree, Manu, John Connor

Forum statistics:
  • 1,262 topics, 5,794 posts, 6,967 members
  • Our newest member is josephgross123
Birthdays:
Back to Top