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.

Spaces in Categories Conditional Being Stripped after upgrade

September 13, 2014 9:31am

Subscribe [1]
  • #1 / Sep 13, 2014 9:31am

    dmacli

    141 posts

    I recently upgraded from 2.5 to 2.9.

    I had the following code in a template:

    <div class="one-f clearfix{categories}{if category_name == "Premiere"} premiere {/if} {if category_name == "Editors Picks"} editors-pick {/if}{/categories}"  relative;">

    It worked in 2.5, but in 2.9 the output look like this:

    one-f clearfixpremiere

    when I want it to look like this

    one-f clearfix premiere

    In other words the space inside the category conditional is being stripped.  Any idea why?

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

ExpressionEngine News!

#eecms, #events, #releases