Zum Hauptinhalt gehen

Variable variables

Kommentare

1 Kommentar

  • 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

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.