I am using CPN to try to add custom css styling to individual nodes. The normal (default) node view works great and everything works as one would expect. I have then created a view that pull this content type and displays the node view as a slideshow (think content rotator). However, views isn't picking up the CPN css information that I have attached to the node and as such, will display the node correctly in the view. Using firebug, I can see that the view hasn't picked up the css file (in this case, 106.css) when it renders the veiw.
Wondering if anyone has a workaround for this? How does CPN inject the CSS? Can you have multiple CPN fields loaded at the same time (in the case of the slideshow, I might have up to 5 different slides, each with their own css code)?
Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | cpn-views-not-pick-up-cpn-css-settings-1431680.patch | 2.93 KB | undertext |
Comments
Comment #1
retrodans commentedI have the same request. Although I do wonder whether having this on automatically would cause issues. Maybe having the ability to enable this feature per view would be good, so supply it as a field to display in views maybe, which can be added as required?
Comment #2
Denal.Drupnis commentedSame for me. I use views and try to enter css for content type and for node. In public://cpn I found resulted css files but when rendering pages css files aren't included in html header. Is there something broken or do I need another module for include css and javascript from public://cpn?
Thanks
Comment #3
undertext commentedHere is the patch, guys.
Comment #4
damienmckennaThis shouldn't define Views as a dependency, and code needs some tidying to match the Drupal coding standards.
Comment #5
damienmckennaIt also needs to be extended to support the JS too.