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.

category name

February 14, 2011 9:02am

Subscribe [3]
  • #1 / Feb 14, 2011 9:02am

    Riverboy

    2993 posts

    Im trying to pull out the name of the category where channel entry is published but can not do that. Been trying to use exp:categories tag but it pulls out all the categories, not only the one that is marked with the entry published. And this is the “comment” page where i want to put notice for users that they are in channel X and reading entry that is under category X, like “you are here - cars|volvo” (cars is Channel and volvo is category).

    Using EE version 2.1.3

  • #2 / Feb 14, 2011 10:16am

    Sue Crocker

    26054 posts

    Hi, Pete. Categories are stored in a loop inside of exp:channel:entries.

    http://ellislab.com/expressionengine/user-guide/modules/channel/variable_pairs.html#var_categories

    Does that help?

  • #3 / Feb 14, 2011 10:21am

    Mark Bowen

    12637 posts

    Hiya,

    Have you tried using the Channel Category Heading Tag?

    That should get the currently viewed category for you.

    Best wishes,

    Mark

  • #4 / Feb 14, 2011 10:30am

    Riverboy

    2993 posts

    Many thanks. As usual - i just dont know from where to look, my bad. Close this one as per i think i can continue now with ease.
    -pete

  • #5 / Feb 14, 2011 10:38am

    Sue Crocker

    26054 posts

    Thanks for the assist, Mark.

    Pete: Don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases