Hi there,
I’ve been working on a custom theme and have run into an issue where the custom fields set for the business do not echo/print to/become visible in documents with the applied theme. Not sure if it’s a bug or I’m missing something, but I could swear the following line worked a few months ago when I put it in at the time:
<td>{{ business.custom_fields[0].text }}</td>
This no longer works…nothing gets shown.
In trying to figure this out, I found a recent question thread (36877) which seems to indicate they got it working there. However in trying equivalent lines in my theme I don’t get anything echoed out. For example, to try to get my second custom field “Email” I’ve tried all of these lines individually:
<td>{{ custom_fields['Email'] }}</td>
<td>{{ custom_fields['Email'].label }}</td>
<td>{{ custom_fields['Email'].text }}</td>
<td>{{ custom_fields["Email"] }}</td>
<td>{{ custom_fields["Email"].label }}</td>
<td>{{ custom_fields["Email"].text }}</td>
<td>{{ custom_fields[1] }}</td>
<td>{{ custom_fields[1].label }}</td>
<td>{{ custom_fields[1].text }}</td>
For reference here’s my custom field setup:
and I do have content entered into each of these on the Settings > Business Details page
I figured “go back to basics” to try to figure out what’s going on, so tried using:
<td>{{ business }}</td>
This gives everything in the business, but the “custom_fields” entry gives this:
[custom_fields, ManagerServer.HttpHandlers.Businesses.Business.View+CustomFields]
Is something not being processed correctly?
Any help is super appreciated!