When a page includes multiple nodes with CPN CSS and/or JS, only one of those nodes JS/CSS gets attached.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | cpn-n1423478-4.patch | 1.66 KB | damienmckenna |
| #2 | cpn-multiple-nodes-1423478.patch | 1.16 KB | davidtrainer |
| #1 | cpn-1423478-1.patch | 1.18 KB | lee20 |
Comments
Comment #1
lee20 commentedAttached is a patch that solves the problem.
Comment #2
davidtrainer commentedI confirmed that the above patch works, and rerolled it from within the cpn module directory with no substantial changes.
Comment #3
damienmckenna+1.
Comment #4
damienmckennaThis needed to be rerolled. Also, I changed the per-content-type code to have the variable named after the content type instead of the nid, which seemed redundant and may help avoid the same file(s) being loaded multiple times.
Comment #5
damienmckennaCommitted, thanks everyone.
Comment #6
damienmckennaNeeds to be backported.
Comment #7
damienmckennaTag.
Comment #8
damienmckennaThis isn't needed for the D6 branch.