Download Size md5 hash
ds-6.x-1.1.tar.gz 38.99 KB 98e9999bcad7704da83ab2ace2e20e4e
ds-6.x-1.1.zip 51.81 KB 00ee612ae8a2a298e50d99e80009a595
Official release from tag: 6.x-1.1
Last updated: December 24, 2010 - 22:51

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.

    <?php
    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