take full control of your site layout - drupal · the old-school way mix of template files and...
TRANSCRIPT
Take Full Control of Your Site Layout
with Display Suite for Drupal 7
Presented by swentel and jyve
Design, UX and Theming
Introduction✤ @swentel (http://drupal.org/user/107403) and @janyves (
http://drupal.org/user/591438)
✤ Maintainers of field_group, sweaver, imagecrop etc ..
✤ http://dsd7.customsource.be/ demo site for this presentation
Krimson krew members
Outline✤ Philosophy
✤ The old way & the cool way
✤ Extras
✤ Advanced use case
✤ Search
✤ Panels
✤ Api, performance
✤ Future & Questions
✤ Lot's of demos!
Philosophy of Display Suite✤ Manage your site layout from one central place
✤ Bridge the gap between themers and developers
✤ Make template files unnecessary
✤ Focus on ease of use, portability and manageability
✤ No PHP code – reduce danger of exploits
The old-school way✤ Mix of template files and Field UI.
✤ Disadvantages:
✤ Template files not maintainable and not themerfriendly
✤ Field UI is limited:
✤ No UI to add extra fields (eg. Node title, Node Author)
✤ No UI to add extra view modes
✤ Inconsistent: search result view mode not reflected in output
✤ No way to nest containers or use predefined templates
The cool way✤ Extending the Field UI
✤ Create new View Modes
✤ Use predefined layouts
✤ Add custom fields
✤ Extending Views item lists
✤ Works on any entity!
✤ Consistent HTML output
Extras module✤ Field templates (Field styles and the death of Drupal Divitis)
✤ Regions to block
✤ Contextual links
✤ Page title options
✤ Switching View Modes
✤ Views Displays – templates and fields
✤ There's more, just try it out
Advanced use cases✤ Animated slide show with multiple content types.
✤ Proposals?
A beautiful search✤ Override search result pages for Drupal core and Apache Solr
✤ Override user search result page
DS and Panels: a love story✤ DS is not the 'Antipanels' @merlinofchaos
✤ Panels layout editor on any View Mode
✤ Ability to switch to Field UI as well
Leveraging the DS API✤ Creating custom fields
✤ Creating block fields
✤ Creating dynamic fields
✤ Creating custom layouts:
✤ hook_ds_layout_info()
✤ Create ds_layouts folder in your theme
✤ drush dsbuild “My layout” regions=”Left, Right”
✤ Exporting settings to code
Performance✤ The number one question
✤ http://drupal.org/project/entitycache
✤ Rewritten from the ground up for the D7 version
The Future✤ http://groups.drupal.org/displaysuite
✤ More features into Field API
✤ Display API for drupal 8
Resources✤ http://drupal.org/project/ds
✤ http://bit.ly/dsd7
✤ http://drupal.org/node/644662
✤ http://realize.be/topics/displaysuite
✤ http://www.jyvesgarden.com/category/blogtags/displaysuite
Questions ?
THANK YOU!
What did you think?
Locate this session on the
DrupalCon London website:http://london2011.drupal.org/conference/schedule
Click the “Take the survey” link