Closed (fixed)
Project:
Panels Everywhere
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Aug 2010 at 04:55 UTC
Updated:
7 Jun 2011 at 14:31 UTC
Jump to comment: Most recent file
Comments
Comment #1
merlinofchaos commentedHmmm. Yeah, it makes sense to me. I worry that the config might be a bit painful in the UI, so we'll have to do the patch in such a way that people who want to turn it on for just one theme (or something) can do it without making it even more complex to turn this module than it is already, but it should be doable since most of the important bits in it are theme dependent (since the way it takes over is to attack the theme registry).
Comment #2
nigelcunningham commentedAdd a 'PanelsEverywhere' checkbox column in admin/build/themes/select?
Comment #3
merlinofchaos commentedProbably only one that appears if a "Enable per theme control" checkbox is set on the main panels everywhere settings page. That makes it easy to 'just turn on' and not too difficult to hit that checkbox and then go enable it for the appropriate theme.
Comment #4
nigelcunningham commentedOkay. That should be pretty easy to implement. I'll give it a go once I get some other jobs out of the way.
Comment #5
nigelcunningham commentedThe first part was indeed easy - though ctools doesn't seem to provide a way to make an option depend on two other options. Am I missing something?
Anyway - and more importantly - I'm having difficulty with the system module's implementation of admin/build/themes. Can I get you to take a look at it and tell me if I'm right in thinking that adding another column for overriding would involve a form_alter to add the checkboxes to $form, but then a complete replacement of theme_system_themes_form to get it rendered? (If so, how do I do that?)
Regards,
Nigel
Comment #6
merlinofchaos commentedYou can depend on two items. You need '#dependency_count' => 2, I think.
I'm not completely sure about adding items to the theme page. If it's ugly to do so, then I guess just list all enabled themes on the Page Manager page and put the checkboxes there.
Comment #7
nigelcunningham commentedOk; thanks.
Comment #8
that0n3guy commentedHey, I just started messing with panels everywhere and it is AMAZING for unique landing pages (like for marketing campaigns and such). But as such, I need this functionality also.
I am willing to test and help look over some basic code if ya need anything. Nigel, can you post what you have going already?
Comment #9
nigelcunningham commentedHi.
Sorry for my slowness - been traveling. I've just finished the functionality, and it works for me :) Patch against -dev at the time of writing is attached.
Comment #10
nigelcunningham commentedComment #11
nigelcunningham commentedHere's a new version of the patch. I found that PanelsEverywhere was being activated by merely turning on the site template. With this version, you need to explicitly enable the "Override page template" option (or do it per-theme).
Comment #12
nigelcunningham commentedShould I make the status "Reviewed & tested", since it's working fine for me? But I'm the author of it :)
Comment #13
that0n3guy commentedTested patch at #11, I get this error:
Comment #14
that0n3guy commentedAlso, in your description it says: "This setting adds a checkbox to the Themes page, allowing you to choose which themes are overridden by Panels Everywhere"
I didn't really see any checkboxes on admin/build/themes, I think this may be a type and should say something like "this settings allows you to choose which themes are overridden, Check the checkboxes for the themes you want to override below:" You choose the theme in the admin/build/panels/settings/everywhere page not the themes page... right?
Comment #15
nigelcunningham commentedOops! Sorry.
Both issues are fixed in this new version. You're right - enabling that checkbox makes per-theme options appear below. The original plan was to add them to the Themes form, but that turned out to be less than straight forward.
Comment #16
that0n3guy commentedThats better, great job. I patched against dev and it seems to work just fine. Can we mark as reviewed and tested by community?
Comment #17
nigelcunningham commentedSure. You can do that yourself, but I'll save you the effort :)
Comment #18
that0n3guy commentedHa, what I meant was, does 2 people testing it count as "tested by the community"? 2 = community? :)
Comment #19
merlinofchaos commented2 is more than I usually get. =)
This is a great enhancement, since it allows you to quickly switch back and forth between PE themes and non-PE themes without causing your site a lot of distress. Well done.
Comment #20
nigelcunningham commentedThanks very much! None of my work would be possible without your work and guidance!
Comment #22
sleeping_at-work- commentedCan't see which is the problem about
in comment 11; well, as written in Panels Everywhere interface about activating the "Override the page template" option
In particular, if you need to explicitly enable the "Override page template" option in order to use PE, this complicates a lot configuring custom settings for your page html "head", body id and classes
Comment #23
sleeping_at-work- commented.
Comment #24
sleeping_at-work- commentedWe'd like PE to be enabled on a per-theme basis, but we'd like to enable PE without checking "Override the page template": so I think the patch in this ticket has to be modified (have a look to http://drupal.org/node/906436).
Here's a patch, it must be improved but it's just a first step (I don't know if I'll be able to provide a complete patch, so I hope the community will help)
Comment #25
kars-t commentedHi sleeping_at-work
as you postet the same patch in #906436: "Override the page template" cannot be disabled I am closing this issue again and get onto the other one :)