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.
ExpressionEngine® Answers is a question and answer site for administrators, end users, developers and designers for ExpressionEngine® CMS. It only takes a minute to sign up.
Sign up to join this communityI'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"}
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}
There's also Freebie as well which would allow you to do:
{exp:freebie:category_name segment="3"}