Hello,
I have three custom field: nome, cognome, regione.
I want display only nome in viewtopic_body.html so I
<!-- IF postrow.custom_fields.PROFILE_FIELD_NAME eq "nome" -->
<b>{postrow.custom_fields.PROFILE_FIELD_NAME}:</b> {postrow.custom_fields.PROFILE_FIELD_VALUE}<br />
<!-- ENDIF -->
and this
<!-- IF postrow.custom_fields.PROFILE_FIELD_NAME eq "Nome" -->
<b>{postrow.custom_fields.PROFILE_FIELD_NAME}:</b> {postrow.custom_fields.PROFILE_FIELD_VALUE}<br />
<!-- ENDIF -->
but it doesn' t work. How can I try? How can I solve? Thank you.
Display custom field doesn' t work
-
- Registered User
- Posts: 1
- Joined: Sun Nov 01, 2009 11:32 pm
Re: Display custom field doesn' t work
In these lines of your viewtopic_body.html template,
Try adding your IF statement like this,
Code: Select all
<!-- BEGIN custom_fields -->
<dd><strong>{postrow.custom_fields.PROFILE_FIELD_NAME}:</strong> {postrow.custom_fields.PROFILE_FIELD_VALUE}</dd>
<!-- END custom_fields -->
Code: Select all
<!-- BEGIN custom_fields -->
<!-- IF not postrow.S_PROFILE_COGNOME or not postrow.S_PROFILE_REGION -->
<dd><strong>{postrow.custom_fields.PROFILE_FIELD_NAME}:</strong> {postrow.custom_fields.PROFILE_FIELD_VALUE}</dd>
<!-- ENDIF -->
<!-- END custom_fields -->