Skip to main content

Variable variables

Comments

1 comment

  • Zendesk API User
    Author: Peter_Jodeleit - 6/29/2010 10:52

    I would recommend using a map for this:

    $CMS_SET(fragments, 
          {"headline" :
              {"white" : "<h1 style='color: #fff;'>",
                "red"  : "<h1 style='color: #f00;'>" },
           "subline" :
              {"white" : "<h2 style='color: #fff;'>",
                "red"  : "<h2 style='color: #f00;'>" }})$
    $CMS_VALUE(fragments[st_type][st_color])$
    0

Please sign in to leave a comment.