We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Not Understanding How Low Seg2Cat Works

Development and Programming

FrankJohnson's avatar
FrankJohnson
150 posts
15 years ago
FrankJohnson's avatar FrankJohnson

Friends:

I’m having a really difficult time understanding how the Low Seg2Cat extension is supposed to work, am I’m hoping someone can help me.

I’m trying to use a url like this:

 http://www.anydomain.com/index.php/weblog/news/category1/

so that it shows all of the entries in category1 (the category name).

Here is the code I’m using in the “news” template to show the entries:

{exp:weblog:entries weblog="news" category="{segment_3_category_name}" sort="desc" limit="10"}
{title}

{body}
{/exp:weblog:entries}

But that results in no entries being listed at all.

I’m sure I’m doing something really dumb, but I can’t figure out what it might be. 😊

Can someone help?

Thanks in advance,

Frank

       
smartpill's avatar
smartpill
456 posts
15 years ago
smartpill's avatar smartpill

For category you need an ID, not name. So try:

{exp:weblog:entries weblog="news" category="{segment_3_category_id}" sort="desc" limit="10"}
{title}

{body}
{/exp:weblog:entries}
       
FrankJohnson's avatar
FrankJohnson
150 posts
15 years ago
FrankJohnson's avatar FrankJohnson

Thanks Kyle. I was right - I was doing something really dumb. I knew the tag needed the category ID (rather than the name), but I was dense. <grin>

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.