{% include "shared/be_general_data" %}

Hi,

I’m trying to create a new template in which the user can select a certain curreny.
Looking at the template ‘Cash’, the options are huge but when I copy the code, I don’t get any choices.
I also get an error which is referring to ‘{% include “shared/be_general_data” %}’.

How do I access the general data?
What data does it hold? I suppose I need to access this data in order to select a currency?

Thank you in advance.

What we do sometimes is create a template that is a Questionnaire. And ask (with a dropdown option) what the currency is. I have included a snippit of our code below:

1 Like

Morning Henri-Louis,

Since be_general_data is a shared part from Silverfin, you can’t see the code directly in your environment. You can copy the following code in order to create that dropdown:

{% assign currency_codes = currency_codes | default:false %}

{% if currency_codes %}
  {% assign currency_codes_array = "AED|AFN|ALL|AMD|ANG|AOA|ARS|AUD|AWG|AZN|BAM|BBD|BDT|BGN|BHD|BIF|BMD|BND|BOB|BOV|BRL|BSD|BTN|BWP|BYN|BZD|CAD|CDF|CHE|CHF|CHW|CLF|CLP|CNY|COP|COU|CRC|CUC|CUP|CVE|CZK|DJF|DKK|DOP|DZD|EGP|ERN|ETB|EUR|FJD|FKP|GBP|GEL|GHS|GIP|GMD|GNF|GTQ|GYD|HKD|HNL|HRK|HTG|HUF|IDR|ILS|INR|IQD|IRR|ISK|JMD|JOD|JPY|KES|KGS|KHR|KMF|KPW|KRW|KWD|KYD|KZT|LAK|LBP|LKR|LRD|LSL|LYD|MAD|MDL|MGA|MKD|MMK|MNT|MOP|MRU|MUR|MVR|MWK|MXN|MXV|MYR|MZN|NAD|NGN|NIO|NOK|NPR|NZD|OMR|PAB|PEN|PGK|PHP|PKR|PLN|PYG|QAR|RON|RSD|RUB|RWF|SAR|SBD|SCR|SDG|SEK|SGD|SHP|SLL|SOS|SRD|SSP|STN|SVC|SYP|SZL|THB|TJS|TMT|TND|TOP|TRY|TTD|TWD|TZS|UAH|UGX|USD|USN|UYI|UYU|UYW|UZS|VES|VND|VUV|WST|XAF|XAG|XAU|XBA|XBB|XBC|XBD|XCD|XDR|XOF|XPD|XPF|XPT|XSU|XTS|XUA|XXX|YER|ZAR|ZMW|ZWL" | split:"|" | sort %}
{% endif %}

I hope that helps,

Best,
Borja

1 Like

@pgallagher @borjaGonzalez

Thank you both for the quick reponses!