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.

3 Answers 3

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"}
4
  • 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. Jan 2, 2013 at 21:40
  • Mark - remember to mark Nate's answer as "accepted" if it answered your question satisfactorily. Jan 2, 2013 at 21:45
  • Ahhhh. Thanks... I didn't realize that's what you do. Thanks. Jan 2, 2013 at 21:52
  • haha, you marked the wrong one!
    – Natetronn
    Jan 2, 2013 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}

1
2

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

{exp:freebie:category_name segment="3"}
1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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