Using Unified Switcher

Unified switcher is unified JavaScript switcher code that can be used for all environments available in your project.

Note

Unified switcher is available only for projects with multiple homepage URL address.

To get unified switcher code, you should:

  1. In Control Panel, open your Project List.
  2. In the list, find your project and click on it to open.
  1. Go to the Integration page.
  1. Click on the unified switcher link under the table with the list of available environments.
  1. On the Unified Switcher page, match each homepage URL of your project with the corresponding environment.

Note

If you change matching homepage URL and environments afterwards, you will need to change the switcher code on your site manually. Unified Switcher page is only a kind of wizard to get the switcher code for your project.

  1. Copy the code available on the Unified Switcher page.
  1. Paste the code right after the opening HEAD tag of each page of your original site you want to make responsive in any external editor.
  2. Save all pages.
  3. Back in Flamingo Control Panel, click Revalidate Script Installation to check that script is working properly.
  1. After Flamingo completes validation, it will show the validation status. If Flamingo Script works properly, a button allowing you to open the project in Flamingo IDE will be shown. If script available on your pages is not valid, the corresponding statement will be shown. After you fix the script, click the Recheck button to validate it again.

After the script works properly on your site, you can open it in Flamingo IDE.

Using External Switcher Code

Flamingo provides reduced switcher code to use on your site instead of the initial unified switcher code. It is called external switcher code. To use the external switcher code on your site:

  1. Follow Steps 1-3 from the previous instruction.

  2. Click Switcher Code Parameters.

  3. Turn the Use external switcher code option ON.

  4. Click Update Parameters.

  5. Return to the Integration page.

  6. Follow Steps 4-10 from the previous instruction.