3

At the moment I can add multiple categories to a post which is fantastic. Is there a way to specify which of the selected categories is the primary category for that content?

The reason that I want to select the primary category is to present a clear breadcrumb trail.

For example an article of content could have the following categories:

A
   B
      C *
   D *
       E
F *
   G
   H

But the bread crumbs should reflect the primary category "C" (for example).

A > B > C > The Content Title

6

There's a commercial addon called Primary Category by Solspace which is what you are probably looking for.

| improve this answer | |
4

I'd continue using the traditional method of defining categories associated with your entry, but, in order to specify the "primary" category, I'd use an add-on like Lonely Cat, which allows you to store a single category in a channel field. Then, I'd use that primary category to feed an add-on like GWcode Categories, which should be able to generate the categorical portion of your breadcrumb structure.

| improve this answer | |
  • Does "Lonely Cat" automatically tick the category for the content as well? (In the case where only one category is specified). – Lea Hayes Dec 5 '12 at 15:55
  • I don't have any idea; I'd suggest pursuing CreateSean's answer anyways - that looks to be exactly what you need. – Nick Benson Dec 5 '12 at 16:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.