Use different URI's for different view modes of the same node

Events happening in the community are now at Drupal community events on www.drupal.org.
Anonymous's picture

Hi, I have a content type with several fields. Based on the site specification, we want to display the fields of this node in 5 separate pages, together with different related views in sidebar for every page. The original idea was to create 5 different view modes, but is it possible to display different view modes of the same node view modes ex.using a parameter, like node/13/1 , node/13/2 , or node/13?v=1, node/13?v=2 ?

Comments

Hi, Not immediately, however,

swentel's picture

Hi,

Not immediately, however, ds extras contains the 'View mode per node' option which enables you to switch view mode on a per node basis (configered on the node edit form). This could be expanded with a simple check on a $_GET['parameter'] if you want, so in that case 'node/13?v=viewmodename' should be possible.

If that's something you'd like, that should be a really easy patch on that functionality. Open up feature request in the queue and I should get you a patch in no less than 10 minutes or so.

Thanks, I created the request

infowonders's picture

Thanks, I created the request in the queue. I really appreciate all the great work that you're doing with DS.

Display Suite

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: