5

I'm trying to show the category_name of segment_3. If I use the variable {segment_3} it displays the short name, I want to show the Full name. Any suggestions?

Thanks in advance.

4

I'd check out Cat2: http://devot-ee.com/add-ons/cat2

And you can use it like so...

category_name from category_url_title

{exp:cat2:name category_url_title="{segment_3}" category_group="5"}
| improve this answer | |
  • That did it! Thank you sooo much. I don't know why I bothered trying to figure it out for a very frustrating hour. Again... Thanks. – Mark Dodgson Jan 2 '13 at 21:40
  • Mark - remember to mark Nate's answer as "accepted" if it answered your question satisfactorily. – Derek Hogue Jan 2 '13 at 21:45
  • Ahhhh. Thanks... I didn't realize that's what you do. Thanks. – Mark Dodgson Jan 2 '13 at 21:52
  • haha, you marked the wrong one! – Natetronn Jan 2 '13 at 21:55
5

Low Seg2Cat works great for this.

Low Seg2Cat loops through the segments of the current URI, matches them against existing categories, and registers the matching categories as global variables, which you can use in your templates.

You'd be able to access your category name using {segment_3_category_name}

| improve this answer | |
2

There's also Freebie as well which would allow you to do:

{exp:freebie:category_name segment="3"}
| improve this answer | |

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.