0

Is it possible to offer viewers different options on how to view an image?

Currently, it just defaults to a flexslider that I have put as default on my image style.

Looking for instructions on how to achieve this functionality by using views.

I know there is a similar post here but that is WHILST creating the content type - I want the user to choose how to see a set of images after the images have been added to the website!

0

Use different view modes for your entity (node). Each view mode (also called a build mode) can have different template (.tpl.php) files. Use hook_entity_view_mode_alter to decide which view mode to use (based on your user's selection).

You can use the View Modes module to create custom view modes.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.