dmnkhhn
Active member
Hello there!
Iam trying to understand the Custom User Fields and one thing I can't explain to myself:
In the "member_view" template you iterate through „$customFieldsGrouped.contact“ and you are including the template "custom_field_view" in the loop.
That templates get's out the information from the Custom User Field by using (for example):
$field is obviously the id of the Custom User Field but where does „ fieldValueHtml“ come from?
I printed out „$customFieldsGrouped“ in XenForo_ControllerPublic_Member::actionMember() but that array doesn't contain a „ fieldValueHtml“.
So where does this value come from?
I noticed there is a helper class (XenForo_ViewPublic_Helper_User) but I don't understand how those two work together.
Can you please point me in the right direction?
Thanks,
Dominik
Edit:
I forgot that you can extend the XenForo_ViewPublic_Base class and use the renderHtml-method.
Problem solved. ;-)
Iam trying to understand the Custom User Fields and one thing I can't explain to myself:
In the "member_view" template you iterate through „$customFieldsGrouped.contact“ and you are including the template "custom_field_view" in the loop.
That templates get's out the information from the Custom User Field by using (for example):
{xen:raw $field.fieldValueHtml}
$field is obviously the id of the Custom User Field but where does „ fieldValueHtml“ come from?
I printed out „$customFieldsGrouped“ in XenForo_ControllerPublic_Member::actionMember() but that array doesn't contain a „ fieldValueHtml“.
So where does this value come from?
I noticed there is a helper class (XenForo_ViewPublic_Helper_User) but I don't understand how those two work together.
Can you please point me in the right direction?
Thanks,
Dominik
Edit:
I forgot that you can extend the XenForo_ViewPublic_Base class and use the renderHtml-method.
Problem solved. ;-)