Quantcast
Channel: Active questions tagged users - Drupal Answers
Viewing all articles
Browse latest Browse all 451

display view mode on node based on field setting or taxonomy term of user profile

$
0
0

I'm using Display Suite which is awesome and an easier solution if you're not a coder. Now that I have created several view modes I'd like to set a particular view mode that is based on a field setting (a taxonomy term in my case) in the viewing user's account setting (I guess that's also called the user's profile, right?). It seems that DS is mostly used in conjunction with Views but I simply want users to get a different view mode when viewing the node without Views. I think I'll have to create a separate module for that or add a preprocess function to my template file but I have no idea where to start. Can anyone share their suggestions with me on how to do this? I'm not a coder but I think I can implement some code, though. Cheers!


Viewing all articles
Browse latest Browse all 451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>