ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Trouble using Category URL Indicator

May 03, 2011 1:27pm

Subscribe [3]
  • #1 / May 03, 2011 1:27pm

    kscot

    91 posts

    I would like to use Category URL Titles in links to construct human-friendly URLs on my site. I’ve set the Category URL Indicator to “c”.

    I have a page with the following URL:
    http://www.my-site.com/template/c/category-name

    And below is the code in the template:

    {exp:channel:category_heading channel="channel-name"}
    <h1>{category_name}</h1>
    {/exp:channel:category_heading}
    
    <ul>
    {exp:channel:entries channel="channel-name"}
    <li>{title}</li>
    {/exp:channel:entries}
    </ul>

    The category name displays correctly, but I can’t get any entries to display. If I add in the dynamic=“no” parameter I can see all of my entries. What did I miss here? Seems like this is simple, out-of-the-box functionality.

  • #2 / May 03, 2011 1:33pm

    Mark Bowen

    12637 posts

    Have you gone to Admin > Channel Administration > Global Channel Preferences and set the Use Category URL Titles in Links setting?

    Best wishes,

    Mark

  • #3 / May 03, 2011 1:34pm

    kscot

    91 posts

    Yes, and I’ve made sure the category URL Indicator is “c”.

  • #4 / May 03, 2011 1:40pm

    Mark Bowen

    12637 posts

    Seems to work fine for me testing on 2.1.4. Are you removing the index.php using .htaccess?

    If so have you tested by taking the .htaccess file out of the equation for a bit?

    Also you are definitely using the correct category name in the URL and you definitely have some entries assigned to that category.

    Best wishes,

    Mark

  • #5 / May 03, 2011 2:22pm

    kscot

    91 posts

    Embarrassed to report that I failed to assign the entries to the category… Thanks Mark!

  • #6 / May 03, 2011 2:31pm

    Mark Bowen

    12637 posts

    Embarrassed to report that I failed to assign the entries to the category… Thanks Mark!

    No problem at all. That’s happened to us all before now 😉 and why I mentioned it.

    Glad it was a nice easy fix.

    Hope everything else goes well for you.

    Best wishes,

    Mark

  • #7 / May 04, 2011 5:44am

    John Henry Donovan

    12339 posts

    Thanks Mark. Closing this one out. Feel free to start a new thread if you have any more questions

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases