1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Custom User Fields and fieldValueHtml

Discussion in 'XenForo Development Discussions' started by dmnkhhn, Nov 13, 2011.

  1. dmnkhhn

    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? :)


    I forgot that you can extend the XenForo_ViewPublic_Base class and use the renderHtml-method.
    Problem solved. ;-)

Share This Page