Downloads

Download ds-6.x-1.1.tar.gztar.gz 38.99 KB
MD5: 98e9999bcad7704da83ab2ace2e20e4e
SHA-1: 9292b472b4a12e860e4c758977cb2494db3d02df
SHA-256: 33c82f3802f131ee1b0bfdda35187c9b51606b3c01c7e836a19737894c7a9196
Download ds-6.x-1.1.zipzip 51.81 KB
MD5: 00ee612ae8a2a298e50d99e80009a595
SHA-1: 52fb32c9e2e1847e122ab9da88681b8a7ef29ec0
SHA-256: 183a9fe8b4138cb2684277e9e3f95d98902c8291f8a8171a0262132114be4d18

Release notes

Important: you need to upgrade all modules related to Display Suite if you are using them: Node Displays, Node Displays Contributions etc - they all have a new release available.

We introduced 2 small API changes which you should read first:

  • Instead of using 'ds.css', every module (like nd, cd, ud and cd) now have their own CSS file to avoid css clashes. If you upgrade, your css might now work anymore if you did some overrides. However, we did a split of the rendering of all regions into a separate theming function. You can paste following code in your template.php or in your module file to safely upgrade to 1.1 without losing CSS markup. If you don't care, you can safely delete ds.css in the css directory.
    function phptemplate_ds_regions($object_display, $module)
    
      // Bring back the old ds.css file. It might be more interesting to just copy that file to your theme folder and adding it into the info file of your theme.
      drupal_add_css(drupal_get_path('module', 'ds') .'/css/ds.css');
    
      $content = '';
      foreach ($object_display->themed_regions as $region_name => $region_data) {
        $content .= '<div class="ds-region-'. $region_name;
        if ($region_name == 'middle') {
          $content .= ' '. $object_display->ds_middle_classes;
        }
        if (isset($region_data['extra_class'])) {
          $content .= $region_data['extra_class'];
        }
        $content .= '" ';
        if (isset($region_data['inline_css'])) {
          $content .= $region_data['inline_css'];
        }
        $content .= '><div class="ds-region-inner">'. $region_data['content'] .'</div></div>';
      }
      return $content;
    

    We also changed the default nd.tpl.php a bit - although the implications should be minimal - but it might be best to make a backup first.

  • ds_show_links() has been renamed to ds_show_field() and takes an extra parameter. If you use it, see http://drupal.org/node/697320#ds_show_field

Full list of features and bugfixes

Created by: swentel
Created on: 15 Apr 2010 at 16:07 UTC
Last updated: 15 Apr 2010 at 16:10 UTC
New features

Other releases