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.

Channel Category Path Adding Extra Character

January 05, 2012 5:20pm

Subscribe [3]
  • #1 / Jan 05, 2012 5:20pm

    gsl_admin

    4 posts

    Hi Everyone,

    I’m hoping that this is just a simple fix, and that maybe I’m just overlooking something, but while using the channel:categories tag to list out all categories to build a side navigation, the path variable is adding the letter C before appending the category id.  Here is the code:

    {exp:channel:categories channel="products" category_group="2" style="linear" show="not 63"}
         <li><a href="http://{path=products/category}"><span>{category_name}</span></a></li>
    {/exp:channel:categories}

    And here is an example of a link: http://www.test.com/products/category/C56.  I’m so confused right now.  Please help.

    Thanks,
    Lucas

  • #2 / Jan 06, 2012 4:32pm

    Kevin Smith

    4784 posts

    Hi Lucas,

    That’s totally normal. It’s how the Channel Entries tag on the landing template will know which category to show. It’s akin to the P used in pagination links. Is something about this not working correctly for you, or were you just concerned about the aesthetic?

  • #3 / Jan 11, 2012 8:51am

    gsl_admin

    4 posts

    Hi Kevin,

    Thank you for getting back to me.  The issue that I’m having is that I need to create a category specific landing page, but when I load the page using this structure it show all of the categories instead of just the category I selected.  I’m not sure if this makes sense, so let me give you an example.

    We have a landing page that displays a random selection of products with a left bar that shows all of the categories for these products to reside in.  A user can click on any of these categories to go to the category specific landing page that should display products only in that category, but when a user clicks a category they are taken to a page that displays all of the products regardless of category.

    I hope that this helps.  Please let me know if there is an extra step that I am missing or if you need more information.

    Thanks again,
    Lucas

  • #4 / Jan 16, 2012 7:48pm

    Sean C. Smith

    3818 posts

    Hi gsl_admin,

    I just tested your code above and it’s working for me. This leads me to suspect that there is something off in your template code for the categories page. Could you post up the code from opening channel entries tag to closing tag.

    Once we can see the code it should be easier to trouble shoot.

    Sean

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

ExpressionEngine News!

#eecms, #events, #releases