Active
Project:
Clean
Version:
6.x-2.0-beta3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Jul 2010 at 12:02 UTC
Updated:
24 Aug 2010 at 12:03 UTC
Jump to comment: Most recent file
At the moment, clean_body_classes() in template.php creates an edit class per node only (eg section-node-4-edit), which prevents me styling all edit pages with one statement.
I can't override it with mysubtheme_body_classes() because clean_body_classes() is called by clean_preprocess_page(), and I don't want to override that with mysubtheme_preprocess_page() just for one body class.
So, is there another way to get a 'node-edit' or 'section-node-edit' class? Do I need to unpack $variables again?
Or would you like to consider this a feature request?
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 860386.patch.txt | 590 bytes | soulston |
| #2 | 860386.patch | 662 bytes | soulston |
| #1 | 860386.patch | 681 bytes | soulston |
Comments
Comment #1
soulston commentedHi,
Added a patch to add the class of node-edit for and node/n/edit paths. I prefer to use arg's as I think it's easier to follow. Let me know if this is ok.
Thanks
Comment #2
soulston commentedHi,
Actually scrub the last patch file as I have placed the code at the start of the section so as not to interfere with the other class function.
Comment #3
soulston commentedI have removed the checkplain() on this patch as it is superflous.