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.

Conditionals within snippets

May 10, 2013 11:32pm

Subscribe [1]
  • #1 / May 10, 2013 11:32pm

    Nutmeg

    111 posts

    I would like conditionals to pull snippets in on the live server. (e.g. Analytics scripts), but I am running into parsing order issues…

    This is what I have:

    [removed][removed]
    [removed][removed]
    
    {if '{js-chartbeat}'} {js-chartbeat} {/if}
    {if '{js-google_analytics}'} {js-google_analytics}{/if}

    Both the chartbeat & google analytics scripts are also wrapped up in snippets, but this doesn’t seem to work….

    Do I need (another) add-on to make this function?

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

ExpressionEngine News!

#eecms, #events, #releases