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.

"Use Category URL Titles In Links" not working while C1, C2 work

July 11, 2012 12:51pm

Subscribe [2]
  • #1 / Jul 11, 2012 12:51pm

    goodbytes

    49 posts

    Hi!

    I’m adding a categories filter to an existing EE site.

    What I want to do is simply show the different categories in a channel, and when somebody click on the category, only the entries for that category are shown.

    This works:

    {exp:channel:categories channel="blog" style="linear"}         
          <li><a href="http://{path=/blog/index}" title="Articles about {category_name}">{category_name}</a></li>
    {/exp:channel:categories}

    The links generated now look like:
    http://www.domain.local/blog/C2
    and filtering works like a charm.

    When selecting the option ““Use Category URL Titles In Links” the url’s change as they should into:
    http://www.domain.local/blog/category/test1

    The problem is that once I use category URL Titles instead of C1, C2, ... the entries aren’t filtered anymore.

    In the “blog/index” page I’m simply looping like this:

    {exp:channel:entries weblog="blog" limit="10" paginate="bottom"}   
    ...
    {/exp:channel:entries}

    Any ideas what can be wrong?

  • #2 / Jul 11, 2012 2:55pm

    goodbytes

    49 posts

    Ok guys, my bad. I had mixed syntax from EE1 with EE2

    I had

    {exp:channel:entries weblog="blog" limit="10" paginate="bottom"}

    instead of

    {exp:channel:entries channel="blog" limit="10" paginate="bottom"}
  • #3 / Jul 12, 2012 12:42pm

    Shane Eckert

    7174 posts

    Hey goodbytes,

    No worries!

    Is there anything else I can help with?

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases