Show a Display Suite view mode depending on a field value in the profile of the viewing user
Are you looking for code or just the approach? One approach would would be to use HOOK_entity_view_mode_alter(&amp;$view_mode, $context) in a custom module:


Check that the user is logged in
Check that the user is viewing the right kind of node
Load the user and get the profile field value
Based on the field value, set the view mode ($view_mode = 'custom')