Drupal Gardens adds indicators for restricted content, Modernizr and more!

Chris Brookins's picture

Submitted by Chris Brookins on February 25, 2012 - 10:26pm

In this release the Drupal Gardens team continued enhancing our support for restricted content by adding visual indicators to help visitors see that certain users are privileged and certain content is restricted. By showing these indicators, site builders can help inform users that there are advantages to being more privileged members of a site. We also added support for the powerful Modernizr library to make it easier to crafting CSS that supports older browsers. Happy theming!

The Drupal Gardens service was updated with the following new features and enhancements:

  • Use images to show which user roles can access restricted content

    For Professional subscription plans or higher, when your site features content restricted by access control, you can encourage visitors to become premium members on your site using Role Indicators.


    Role indicators are small images used to enhance content teasers, taxonomy term listings, and user pictures that indicate what roles apply to them.  By applying role indicators to content teasers, you can show users that the corresponding content is only available to privileged users. When users without access to the restricted content click the teaser image, you can take them to an upsell page, where they can contact you or another admin on your site to grant them access to the restricted content by adding the appropriate role to their user account. You can also choose to show a similar indicator on their user profile image to indicate they are a privileged member to your site with access to the restricted content.  To learn more, see Creating role indicators.

  • Included the Modernizr library so you can develop feature-targeted webpages

    The Modernizr library is a set of tests that determines what features a browser supports. With Modernizr, you can practice feature-targeted webpage development rather than browser-targeted development, a more future-proof approach.  You can enable this library after you enable the JavaScript libraries module.

    Prior to Modernizr, a browser like Internet Explorer 8 that did not support certain features, such as box shadow, would have to target those features through a separate stylesheet with conditional comments. Now, all features can be included in one sheet and target the capability of rendering the feature as opposed to a specific client like Internet Explorer 8. To learn more, see Using the Modernizer library.

  • For a complete list of what's new, including updates to Drupal modules and bug fixes, see the release notes.