ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Is there a way to "Feature" a category?

October 03, 2010 9:02pm

Subscribe [2]
  • #1 / Oct 03, 2010 9:02pm

    KenKodz

    25 posts

    Let me preface this with I am only working on my second EE2 website and I first learned of EE 6 months ago. With that said ...

    I want to be able to easily pick which categories I display on the front page of a website. Since I can’t use the same name for a custom field I don’t see a way to use one of those to select whether a category is “featured” or not.

    Is there a way that I am not able to think about to accomplish this or do I have to restructure the website and use channels? Using channels brings about a bunch of other problems though.

    Thanks for any help.

  • #2 / Oct 03, 2010 9:50pm

    hd 

    156 posts

    Two ways come to mind:
    1) Create a separates category group for featured categories
    2) Create a custom category field that indicates whether or not the category is featured.

  • #3 / Oct 03, 2010 10:12pm

    KenKodz

    25 posts

    Thanks for the reply!

    1) The site already uses multiple category groups so I don’t think I could use that method
    2) Thought of this, but each category would have to have different field names so I could not filter the list without changing the template to look for each of the “featured” fields and this wouldn’t make it easy for the end user.

    Again, thanks for the reply but I don’t think either method will work in this case. Any other ideas?

    At this point the idea is more of a theoretical since the end user has changed what they want to work within the normal confines of EE2. So don’t work too hard on this. I can think of reasons to use this but it isn’t a priority.

    Thanks Again!

  • #4 / Oct 03, 2010 11:00pm

    hd 

    156 posts

    in that case, why not just have a snippet that defines the id numbers of featured categories. Not the most user friendly, but definitely a simple option.

    Something like:

    1|32|55|95|127
  • #5 / Oct 04, 2010 7:59am

    KenKodz

    25 posts

    Huh! Thanks! I like it. It gives me some ideas.

    Thanks hd!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases