Include Global Set Variable in Print Delimiters I have a site which has another group site - both use same templates but I want to include different phone number in the header of each.

I was wanting to use Global Set Variables to pull this information in.

It works fine in the execute delimiters but not in the print delimeters.

This works fine:

{% include "includes/#{ craft.config.siteCode }/head-constants" %}


Is there any way to include it within another variable like below:

{{ #{ craft.config.siteCode }Defaults.defaultTelephoneLink }}


This gives the Template Error: Unexpected character "#".
You'd want to do something like this:

{{ "#" ~ craft.config.siteCode ~"Defaults.defaultTelephoneLink" }}