New Spark Media Platform Help

Setting Up Language-based Stylesheets

You can use <fm:Switch> to call a specific language stylesheet.

To set up a language-based stylesheet

  1. From the Navigation bar, select Applications>Applications.
  2. On the Applications page, select an application.
  3. Under Sections, click Translation.
  1. Under Categories, click var.
  2. Click the New button.
  3. Make a new var keyword called ‘ stylesheet’.
  4. Enter a name of the stylesheet in the appropriate language columns.

For example, in the English column type englishstylesheet.css . 

  1. In the HTML, change the name of the stylesheet file to {%var:languageStylesheet} so it retrieves the correct stylesheet depending on the language chosen.

For example: If English and French were 2 languages, the CSS including code would look like:

<link rel=“stylesheet” type=“text/css” href=”../assets/{%var:languageStylesheet}” />

0 comments

Be the first to comment on Setting Up Language-based Stylesheets.

Add a Comment

  • captcha