First of all, thank you for this great module. After debating whether to stick with Panels, I decided to give it a try and I like the flexibility (or the option) to change the layout for individual nodes. Here's my problem:
I hacked some parts of the module to create a custom layout - basically by changing the 25-50-25 layout. I added the relevant lines (copy/paste/edit) in the composite.module file, then edited the theme files (.css & tpl.php) and also copied the .png icon with a matching new name. Everything worked fine - and I was actually thrilled to be able to create a custom layout by hacking a module.
Now I have a most unusual problem:
For various reasons, I reinstalled a different linux. I had Fedora 11 earlier and now I have Ubuntu server+Kubuntu. I copied all the modified files, set permissions, etc. But my custom layout is not showing up on the node edit form - what I see are only the default layouts. The Drupal test site itself (restored from database backup) seems to work fine, and the test nodes with the composite layout also display fine. But it's not displaying any custom layout that I created (not listing on the node edit form, either), though the file structure is the same as what I had before.
Can anyone think of what I might be missing? Thanks in advance.

Comments

ramper’s picture

OK, something weird was happening. I checked with Firefox-Firebug, and found that the page was using the "original" composite module's css - which I had saved under a different name in my "sites/all/modules" folder. I have no idea why this was happening - because I now have an "original_composite" and a "composite" folder in my "sites/all/modules" folder. I was assuming that only the "composite" folder (which contains my modified files for the new layout) would be used - automatically. There's something here that's beyond my linux/drupal/mysql knowledge. When I start with a fresh installation of Drupal and enable the composite module, I can see my custom layout. So I'll go with this for now.
If anyone can tell me why the backup (called - very creatively! "original_composite" :) was being referenced when I was using a database restore, it might be helpful in the future. Thanks again.

bengtan’s picture

Status: Active » Closed (won't fix)

I don't think you have an issue with Composite Layout. It's probably an issue with Drupal or your system in general (but it's hard to diagnose since you have so variables changing).

However, I will say that ... you cannot create a backup of Composite Layout by copying composite into another directory called original_composite.

Drupal scans for modules by scanning all directories under "sites/all/modules". If you have a directory composite and another directory original_composite, Drupal will see both of them and just use the first one it finds (essentially random).

I'd suggest you get rid of this module duplication first.

And then ... you should not have to change anything in Composite Layout to add or alter any layouts or layout css. Please make changes in your theme.