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.

Categories: Is there a way to not display the C<Number> in the URL?

May 01, 2008 7:08pm

Subscribe [2]
  • #1 / May 01, 2008 7:08pm

    JoseG

    11 posts

    Hi all,

    I’m using this code to link to a category:

    <a href="http://{path=faq/category}{category_url_title}">{category_name}</a>

    It displays: index.php/faq/category/C5/category_url_title

    What’s the way to build the link so the “C5” doesn’t appears?

    Thanks,

    Jose

  • #2 / May 01, 2008 11:54pm

    robbiegod

    43 posts

    Look in the Admin -> Weblog Admin -> Global Weblog Preferences.

    Click the first option to Yes.
    Keep the magic word as “category”.

    Give that a try, that should allow you to use just the word category + the category title to load content.

    So your link will look index.php/faq/category/category_url_title

    Also, keep this is mind too:
    /faq/ <- this is template group name.
    /index/ <- this is the template you want EE to use to display content. !important!
    /category/ <- reserved word to trigger the load content by category.
    /category_url_title/ <- name of the category.

    So really, your link should look like this:

    index.php/faq/index/category/category_url_title/

    I am pretty sure you need to have the template name in there.

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

ExpressionEngine News!

#eecms, #events, #releases