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.

Can't post EE {if} code in these forums

August 26, 2010 3:29pm

Subscribe [2]
  • #1 / Aug 26, 2010 3:29pm

    Aaron Fowler

    113 posts

    I’m trying to post some code examples here, but {if} statements are being stripped out:

    {preload_replace:active="class='selected'"}
    <li><a href="/">Home</a></li>

    Right after href=”/” there is supposed to be {if segment_1 == ""}{active}{/if}, but it’s being stripped out.

    -Aaron

  • #2 / Aug 27, 2010 4:04am

    John Henry Donovan

    12339 posts

    Aaron,

    I can replicate this and have brought it to the attention of the devs. Thanks for the head’s up.

  • #3 / Sep 02, 2010 5:00am

    John Henry Donovan

    12339 posts

    Aaron,
    That is due to your user of nested quotes.  Instead, try this with single quotes:

    <li><a href="http://{if">Home</a></li>
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases