I think it would be handy if this module provided a separate build mode for slideshows by implementing hook_content_build_modes. I think that is enough detail but let me know if it needs explanation.

Comments

redndahead’s picture

Status: Active » Postponed (maintainer needs more info)

Can you explain more what it's for. or link me to more info about it? I can't find much information on what hook_content_build_modes does.

mstrelan’s picture

When you edit a content type you can set display fields for teaser and full mode, as well as rss, search etc depending on modules enabled. When you build a view that uses the node row style rather than fields row style you get to choose which build mode to use.

If you had a slideshow build mode you could show a limited set of fields per content type while retaining the ability to display lots of fields, or all fields for teasers and full views.

redndahead’s picture

Status: Postponed (maintainer needs more info) » Active

putting back to active

redndahead’s picture

Status: Active » Postponed

Postponing it. Hopefully someone can provide a patch. I'm not quite motivated to do this.

redndahead’s picture

Version: 6.x-3.x-dev » 7.x-3.x-dev
vikfroberg’s picture

I did this way to create a custom view_mode, works like a charm.

/**
* Implements hook_entity_info_alter().
*/
function module_slideshow_entity_info_alter(&$entity_info) {
  $entity_info['node']['view modes']['slideshow'] = array(
    'label' => t('Slideshow'),
    'custom settings' => TRUE,
  );
}
NickDickinsonWilde’s picture

Issue summary: View changes
Status: Postponed » Closed (won't fix)

As @vicfroberg noted, you can easily add it to your site theme/module. Otherwise, see Entity View Mode a custom module which will do that via the UI. Don't think there is a high enough likelihood of use to make it worthwhile adding to Views Slideshow when those options will work.

mstrelan’s picture

Yep, this issue is over 6 years old and was really only relevant for Drupal 6.