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.

Conditional problem

June 24, 2010 1:13pm

Subscribe [2]
  • #1 / Jun 24, 2010 1:13pm

    gdansk

    2 posts

    Hi,

    I’m pretty new to EE, but I’ve been googling this problem for ages, and finally given up. I’m sure it’s pretty simple, but…

    All I want to do if have a conditional in a template - so I’ve edited one of the template files to include this code:

    {if segment_3!=""}{include:breadcrumb}{/if}

    However, when I view the page, the {if ..} code is shown on the page! The {include:breadcrumb} code is parsed correctly. So the output is something like {if segment_3!=”“}Talk:blah:blah{/if}.

    This is the Page Sub-header template in the Discussion Forum module.

    Any advice gratefully received.

    Thanks!

    G

    [Mod Edit: Moved to the Technical Support forum]

  • #2 / Jun 24, 2010 3:42pm

    Ingmar

    29245 posts

    Welcome to the forums, G! What version and build of EE are you using? What template are you trying to modify?

  • #3 / Jun 24, 2010 3:45pm

    gdansk

    2 posts

    Thanks, and hi! I’m using EE 1.6.6, build 20081212. The template is the Page Sub-header template in the Discussion Forum module.

    G

  • #4 / Jun 24, 2010 4:34pm

    Ingmar

    29245 posts

    The forum templates only support a limited set of EE tags by default, I am afraid. Have you tried to run your forums through the main EE template parser?

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

ExpressionEngine News!

#eecms, #events, #releases