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.

What happened to the {categories}{/categories} variable pair functionality in EE1.6!?

June 23, 2007 8:06pm

Subscribe [2]
  • #1 / Jun 23, 2007 8:06pm

    qruxart

    20 posts

    I just updated to EE 1.6 and the {categories}{/categories} variable pair does not seem to work right.

    This code which always seemed to work before does not show the variable that it surrounds. Here’s my code:

    <dd>{categories}<a href="http://{path=portfolio/detail}">{key_image}</a>{/categories}</dd>

    This is supposed to show the contents of the {key_image} variable, which is a “thumbnail” in my case, and link to the template “detail” in the template group “portfolio” using the entry’s category in the URL. It now strips out the variable {key_image} and displays nothing?
    What happened? This used to work fine in 1.5.2

  • #2 / Jun 24, 2007 9:44am

    Derek Jones

    7561 posts

    We added category custom fields in 1.6, so the categories variable pair is seeing the {key_image} variable as one that belongs to it.  Since I’m assuming you do not have such a category custom field, and that it is actually a weblog custom field, the categories variable pair is cannibalizing it.

    I have tweaked this for the next build update so it will be a bit more discrete in which variables the category related tags attempt to parse, so the problem will also go away on its own following the next build release, likely in the next couple of days.  If you need this fix right away, you may email (not PM) me, referencing this thread.

  • #3 / Jun 24, 2007 2:36pm

    qruxart

    20 posts

    I had a feeling it had something to do with the category custom fields. It’s true, I use weblog custom fields. So I’m assuming with the tweaks you are going to make, I can still use the code the way it is, rather than having to add a whole set of custom category field variables, is that correct? In any case a few days will be fine. Will you make an announcement of when this build will be available? Thanks.

  • #4 / Jun 24, 2007 4:21pm

    Derek Jones

    7561 posts

    I had a feeling it had something to do with the category custom fields. It’s true, I use weblog custom fields. So I’m assuming with the tweaks you are going to make, I can still use the code the way it is, rather than having to add a whole set of custom category field variables, is that correct? In any case a few days will be fine. Will you make an announcement of when this build will be available? Thanks.

    Correct on both counts.  The above code you are using will work just fine with the fix.  And we will post to the Build Update forum when it is released, and you may subscribe to that forum’s feed to get notification.

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

ExpressionEngine News!

#eecms, #events, #releases