Extension

Archived
Forum
(read-only)

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
eastwooddesign

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
# 1
Developer
Low

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.