I just installed this module and decided to try it. It seems straightforward -- I can add Blocks and assign them to Zones, drag and drop functionality, awesome.
But! my Blocks don't actually show up when I view the content. My nodes look exactly the same as they did before. The Blocks are enabled, I'm logged in as Admin and have the ability to view everything, I've checked all the usual suspects for block visibility.
I do have customized node-node_type.tpl.php theme files for these nodes. Is it possible that these theme files are overriding the Composite Layout module? If so, how do I make them work together?
Comments
Comment #1
bengtan commented> Is it possible that these theme files are overriding the Composite Layout module?
Possible and very probable.
> If so, how do I make them work together?
Make sure your *.tpl.php files display the variable $content. This is the one that Composite Layout populates.
However, in general, it's not a good idea to mix them because one will clash on the other. You should choose one approach for each node type that you use.
Comment #2
heatherann commentedI see. My node theme files don't print $content, as I need to dig further in than that (this field goes here, that field goes there, etc.). Maybe I'm theming at too high a level? If you're printing $content in your node-NODE_TYPE.tpl.php file, where are you customizing the $content variable?
Thanks!
Comment #3
bengtan commentedHi,
The $content variable is populated by the Composite Module itself, with the assumption that it will be printed in the node-NODE_TYPE.tpl.php files.
If you're themeing at a finer granularity than this, then you shouldn't use Composite Layout as the two approaches will clash.
Either print $content and let Composite Layout handle it, or don't use Composite Layout and modify your node-NODE_TYPE.tpl.php files to be multi-column and print out blocks etc. yourself.