What im looking for is a way to add my panel layouts inside themes/footheme/panelslayout/**
insted of placing them inside modules/panels/layouts

In my part of the world it dosnt make so much sense to have design files placed in the modules folder
(...yup and i have for the 2 time now overwritten a custom layouts after an update of panels2 ;))

could that be possible somehow? :)

cheers

Comments

merlinofchaos’s picture

Yes and no. You're not actually supposed to create .inc files as a module developer; instead, you're supposed to implement hook_panels_layouts() and stick them in your module. Unfortunately, what I've discovered is that people really like the separation of code I did and want to emulate it, and that's actually hard to do that way...unless you make each layout its own module. (Which, actually, isn't that bad of an idea, honestly. That lets you enable only the layouts you want).

stephthegeek’s picture

Just curious if this is a won't-fix or there's hope that themes could provide Panels layouts?

sdboyer’s picture

Status: Active » Closed (works as designed)

So...kind of.

We're switching over to the use of theme templates in D6, and that may make it more possible (but I'm not really familiar with it yet, so I can't say definitively).

However, there are some real chicken-or-the-egg problems with letting themes define layouts, which ultimately make me inclined to say that this probably isn't the best, most stable/reliable way to go.

(Important note - merlin wrote #1 before panels_allowed_layouts was added; it's now possible to restrict which layouts are available without enabling/disabling a module)