Low Seg2Cat
ExpressionEngine 1.x, ExpressionEngine 2, ExpressionEngine 3, ExpressionEngine 4
Back to this add-on's main page
View Other Add-ons From Tom Jaeger
simple use?
General
eastwooddesign
|
Posted: 22 May 2012 10:54 AM |
|
|
|
I am trying to use this to display the category name on a page. the url is:
http://domain.com/index.php/courses/online/6
but when I use the following:
{if segment_3} <h2>{segment_3_category_name}</h2> {/if}
I only get nothing when I view the template in my browser. 6 is the id of my category
|
|
|
Low
|
Posted: 25 May 2012 04:26 AM |
# 1
|
|
Developer
|
Seg2Cat looks at the category_url_title, not the ID. If the page url is http://domain.com/index.php/courses/online/some-category, then it would work.
|
|
|