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.

Removing Category Path In URL

August 16, 2012 12:43pm

Subscribe [3]
  • #1 / Aug 16, 2012 12:43pm

    Jack_

    1 posts

    I’m having an issue in with URL’s wrapped around category tags.

    I basically want the URL to altar depending on the category ID, and not include the category ID at the end, or to be affected by the category at all.

    It’s probably worth noting that this is also inside of a P&T Matrix.

    {multi_news_body}
    {categories show_empty="no" show_group="1" limit="1"}
    {if category_id == "39"}
    <h2><a href="http://{path=portfolio/view/{url_title}/{row_id}}">{title}</a></h2>
    <p>{/if}<br />
    {if category_id == "41"}</p><h2><a href="http://{path=news/view/{url_title}/{row_id}}">{title}</a></h2>
    <p>{/if}<br />
    {/categories}<br />
    {/multi_news_body}

    At the moment it forces a C39 at the end of the URL and also stops the variables for the Matrix running.

    Any help would be greatly appreciated.

    Thanks,

    Jack.

  • #2 / Aug 16, 2012 3:32pm

    bertc

    17 posts

    Hi Jack,

    I think I had exactly the same problem. The tutorial in the following link explains how to remove the Cxx at the end of the URL. Hope this helps.

    http://veerle-v2.duoh.com/blog/comments/categories_and_paths_in_expressionengine/

  • #3 / Aug 17, 2012 3:21pm

    Shane Eckert

    7174 posts

    Hey Jack_,

    bertc is on the case!

    Please let us know if this works for you. It should do the trick.

    Cheers,

  • #4 / Aug 28, 2012 11:52am

    Jack_

    1 posts

    Thanks for the replies.

    I managed to find a work around using the link above.

    Cheers!

  • #5 / Aug 28, 2012 12:33pm

    Shane Eckert

    7174 posts

    Hey Jack_,

    That’s awesome. Glad to hear it!

    If you need anything else, please just let me know by opening a new thread.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases