When I have ds enabled it starts throwing errors about panel layouts having a "content" region.

For example when using the adaptive theme for panels everywhere (http://drupal.org/project/at_panels_everywhere) I get following error on every page:
Following layouts have a "content" region key which is invalid: panels-atpe_site_template.

Problem is that it also happens for other panel layouts that have a content region.

CommentFileSizeAuthor
#6 1468576-6.patch737 bytesandypost
#5 1468576-5.patch580 bytesswentel
#4 1468576-content.patch1.21 KBandypost

Comments

ramlev’s picture

I have the same issue with the content region, but if i change the region name to ex. main_content in the .inc file, and referer to that in the main-site.tpl.php file, everything works like a charm.

Seems to be an issue by calling the region key 'content'. Haven't looked in the source to locate the issue.

hnln’s picture

yep, for my own layouts it's "easy" to change the panel, but sometimes modules come with their own layouts and they sometimes use a 'content' region as well.

hnln’s picture

Origin of the problem lies here: http://drupal.org/node/1382132

Maybe the check in ds_get_layout_info should check for $info['module'] != 'panels' (as ds_ds_layout_info also includes panels).

andypost’s picture

Status: Active » Needs review
StatusFileSize
new1.21 KB

patch against at_panels_everywhere

Suppose we this problem needs more investigation about why region cant has a name "content"

swentel’s picture

StatusFileSize
new580 bytes

Here's a patch against ds, could you test this one ?

andypost’s picture

Version: 7.x-1.5 » 7.x-1.x-dev
StatusFileSize
new737 bytes
swentel’s picture

Status: Needs review » Fixed

Yup, great. Committed and pushed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.