Why just 'teasers' or 'content' - what we really need is the ability to turn on or off the social sharing widget on a View Mode level. For example, the Panopoly distribution comes with a 'Featured' view mode. This is kind of like a bigger teaser - or think using it for a hero image, views slideshow, etc.

Right now, I can turn on or off the Social Sharing widget for Teasers or 'Content' aka all view modes that are not teaser.

Comments

saltednut’s picture

Here is a patch - comes with an update hook to fix the changes in variables.

saltednut’s picture

Status: Active » Needs review
saltednut’s picture

Version: 7.x-2.x-dev » 7.x-2.2
StatusFileSize
new5.41 KB

This is a secondary patch that does the same thing but should apply to sha ae93a66e8cbedadfc6ebe3fbb2945d99b88e36ed (latest 2.2 from April 4 2012)

If you are using 2.2 release, you can use this patch to add the View mode support. To do so, I recommend using a drush.make:

projects[rpx][version] = "2.x-dev"
projects[rpx][type] = "module"
projects[rpx][subdir] = "contrib"
projects[rpx][download][type] = "git"
projects[rpx][download][revision] = "ae93a66e8c"
projects[rpx][download][branch] = "7.x-2.x"
projects[rpx][patch][1946476] = "http://drupal.org/files/rpx-2.2-share-button-by-view-modes-1946476-2.patch"

If you are reviewing this issue, please see the 2.3 patch in #1

saltednut’s picture

Version: 7.x-2.2 » 7.x-2.x-dev
Issue tags: +demo_framework

adding tags