user_category entity view mode was intended to match the user_view view mode but under field ui display settings the user view mode is not passed on for user_category
user_category entity view mode was intended to match the user_view view mode but under field ui display settings the user view mode is not passed on for user_category
Comments
Comment #1
yakoub commentedi think i'll add a field to the user entity that allows under display settings to configure which view modes to use for each category, that will be brilliant ! :)
Comment #2
yakoub commentedfixed by attaching user_category view modes to the user entity modes
this way if someone does user_view($user, 'client') it will be passed on to user_categories_category_view
and site builder can configure field display using field ui for the user_category entities
Comment #3
yakoub commentedComment #4
yakoub commentedthis lead me to think about creating new generic module called entity_categories
but there is no place in field ui to attach the category field management so i dropped the idea