Hello,

I was trying to get the following to work in my .info file...

layouts[sidebars][stylesheet] = "stylesheets/layout-sidebars.css"
layouts[sidebars][template] = "templates/page-sidebars"

Notice how I put my page-sidebars.tpl.php in the directory sites/all/custom/mytheme/templates/page-sidebars.tpl.php

This didn't work for D6. It does work in the D7 version of context though.

I tried this on a clean install with garland. The weird thing is that context DID load the layout-sidebars.css file, I guess it's okay to have your stylesheets in a directory but not your tpl.php files.

Just changed the line to...

layouts[sidebars][stylesheet] = "stylesheets/layout-sidebars.css"
layouts[sidebars][template] = "page-sidebars"

...and moved the page-sidebars.tpl.php to the root of my theme folder and it worked.

Thanks for reading!
-Tim

Comments

Daniel A. Beilinson’s picture

Subscribe!

juanpehar’s picture

I had the same problem, and finally got it working by moving also the page.tpl.php file to the templates folder.

Suggestions only work when they are placed in the same directory as the base templates.
http://drupal.org/node/1089642

It seems that is not necessary to declare the folder where the tpl file is placed

My .info file

layouts[sidebar][stylesheet] = "css/layout-sidebar.css"
layouts[sidebar][template] = "layout-sidebar"
saltednut’s picture

Thanks, this was killing me. I was using a zen subtheme that was still defaulting to the parent theme's page.tpl.php file for normal pages.

Had my custom-layout.tpl.php file in /templates of the subtheme but context layouts was not using it.

I copied an untouched version of page.tpl.php from the parent theme to the subtheme/templates folder and then the custom-layout.tpl.php file started working for the new layout.