Posted by swentel on April 15, 2010 at 4:07pm
| 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 |
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
- #710094: Small bug on admin/ds/layout
- #701132: Catagolus display view
- #722004: Better explanation of advanced viewname
- #727224: Add more options to hook_ds_api and small fix to buildmodes form.
- #720122: Views attached content is not displayed
- #727358: Admin links not displayed yet
- #722000: Make all taxonomy vocabs available as default
- #710034: Add posibility to assign a ds region to a theme region
- #710782: Add option to copy settings from one build mode to other(s)
- #742658: Rename ds_show_links to ds_show_field
- #724420: No Core Body on RSS
- #723638: Make user profile type name doesn't clash with content type name
- #723916: Field title could = edit
- #724124: Add css-class to field definition
- #740552: Installing/Uninstalling nd_fivestar conflicts with fivestar
- #744832: Panels integration
- #743872: Specific node type templates not rendering Ok
- #698272: Finish UD: support for core profile fields
- #763208: fieldgroup display label even there no data
- #582618: Incompatible with fieldgroups - critical for users who want fieldgroups
- #737314: Problem when indexing with Solr
- #766280: Can't overide nd_cck.tpl.php with custom tpl file
- #763024: Add support for cck fieldgroup tabs