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.

Expression is not parsing category_url_title

June 20, 2011 5:01am

Subscribe [3]
  • #1 / Jun 20, 2011 5:01am

    dgink

    60 posts

    My URL is http://localhost:8888/eedemo/movies/entry
    Movies is a template group. Entry is the template within it. The entry template shows the actual entry and the entry is attached to a category in a movies channel.

    On the entry template, I have this code that is correctly outputting the category name using this code:

    {exp:channel:entries channel="movies"}
    <div class="category">
        {categories}
                    <a href="http://{path=movies/wiki/{category_url_title}}">{category_name}</a>
           {/categories}                                
    </div> <!-- end category -->
    {/exp:channel:entries}

    As you can see {category_url_title} is not getting parsed.
    Category name is correctly outputting thriller as the category. The link however is outputting:

    http://localhost:8888/eedemo/movies/wiki/{category_url_title/magazine/thriller}

    I want it to output http://localhost:8888/eedemo/movies/wiki/thriller

    What am I doing wrong? How do I fix this to point to the category this entry belongs to?

  • #2 / Jun 20, 2011 3:52pm

    Brandon Jones

    5500 posts

    Hi dgink,

    Do this instead:

    <a href="http://{path=movies/wiki}/{category_url_title}">{category_name}</a>

    Does that work? Path tags are parsed at a different stage than category_url_title, so nesting them like that won’t work in this case.

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

ExpressionEngine News!

#eecms, #events, #releases