Using more regions than supplied by default?

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
matthewv789's picture

Per http://realize.be/display-suite-drupal-7-taking-full-render-control-over...

It's now possible to create any number of regions. We ship with a couple of predefined layouts which have default css and a template file that can be (un)loaded in any occasion. ... Defining or configuring the setup of custom template files from a module or the UI is easy and done in a few steps.

But I don't see the "few steps" referenced anywhere (especially with regard to using the UI).

I was able to do this by adding a new layout folder in ds/layouts, then adding a corresponding entry in ds.registry. But I don't want to make these changes directly in the ds module directory. How do I do this without adding or changing stuff in the ds module directory?

Edit: OK, now I am seeing in the DS 7 API (http://drupalcode.org/project/ds.git/blob/refs/heads/7.x-1.x:/ds.api.php) some hook functions, like:
hook_ds_layout_info (to define custom layouts?)
hook_ds_layout_info_alter (to alter/hide default layouts?)

So I assume I'd create a custom module and use these hooks to make my changes?

Comments

@matthewv789 That's right,

swentel's picture

@matthewv789

That's right, you can look at ds_test_ds_layout_info(), which is defined in ds_test.module. That's a test module I use for running al Simpletests for DS, and also declares some custom layouts.

Display Suite

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week