Closed (fixed)
Project:
Code per Node
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Feb 2011 at 12:40 UTC
Updated:
19 Apr 2013 at 03:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
robloachYup!!! Minus the "^M".
Comment #2
robloachWrong patch... Here's the right one.
Comment #3
joelstein commentedThanks for catching this and for providing the patches. Fixed in 7.x-1.1.
http://drupalcode.org/project/cpn.git/commit/01861a3
http://drupal.org/node/1080458
Comment #5
attheshow commentedIs there any chance this can be fixed in D6 too since it's a bug?
Currently in D6, the node-specific stylesheets are still inserted before the theme's stylesheets, so the site-wide theme styles end up overriding CPN styles (unless they're super-specific).
Comment #6
zachfls commentedCan I get a bump on this for D6? I've got the latest version of CPN for Drupal 6 and I'm having the same problem. I specifically need this to override the default styling for a few of my main div containers, but since the CPN styles get placed before the default theme styles, this ends up being completely useless for me.
I'd be willing to help work on a patch if someone with a little more know how on whether the the D7 patch would be similar to a D6 solution. I haven't worked with D7 at all yet.
Comment #7
zachfls commentedFor any D6 users who really need this to work, I came up with a bit of a temporary work around.
In my theme's template_preprocess_page hook I added a function that reads the vars['styles'] value of the form and sorts any css styles being linked from the cpn directory to the bottom of the stylesheet list.
It has, for the time being, solved the problem for me. But this really should be fixed in the module.
Comment #8
damienmckennaComment #9
damienmckennaTag.
Comment #10
damienmckennaThe D6 code already does this, e.g.: