Hello,
I'm a bit stuck. The following does not work.
static $searchable_fields = array('Name','City','StateProvince'=>array('title',_t('Family.STATEPROVINCE')));
How do I use my international language files to set the searchable fields title???
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Hello,
I'm a bit stuck. The following does not work.
static $searchable_fields = array('Name','City','StateProvince'=>array('title',_t('Family.STATEPROVINCE')));
How do I use my international language files to set the searchable fields title???
K. I have figured out my problem lies with the static declaration. Statics cannot call variables so this will not work.
Anyone have any ideas? Seems rather limiting for International needs.