using vars in dashboard widgets

Discussion in 'Customization & add-ons' started by bennyuk1, Jan 24, 2018.

  1. bennyuk1

    bennyuk1 aMember Pro Customer

    Joined:
    Jan 12, 2012
    Messages:
    190
    Hi

    Can I display a custom user field within a dashboard widget,
    eg
    [am4user var='customfieldname']

    Thanks
    Ben
  2. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    1,795
    Hello Ben,

    Do you mean widget plugin in aMember? In this case you can use such placeholders %user.customfieldname%

    customfieldname should have type SQL. You can change type of custom field at
    aMember Cp -> Configuration -> Add User Fields -> (edit)

    Best Regards.
  3. bennyuk1

    bennyuk1 aMember Pro Customer

    Joined:
    Jan 12, 2012
    Messages:
    190
    that works perfectly, many thanks
  4. bennyuk1

    bennyuk1 aMember Pro Customer

    Joined:
    Jan 12, 2012
    Messages:
    190
    can we do any conditional formatting on these placeholders, eg
    if %user.customfieldname% exists then show something else show something else
  5. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    1,795
    I am afraid there is not such feature.

Share This Page