Closed (fixed)
Project:
Code per Node
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Oct 2011 at 21:15 UTC
Updated:
25 Feb 2016 at 15:28 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
joelstein commentedI'm afraid this will break styles for many users who do want CSS or JS on node teasers (or more specifically, for view modes other than "full"). However, I've got a plan brewing which will add much more flexibility to this module, and I'll add to my todo list to add a way to indicate which view mode a particular code snippet will use.
Comment #2
chi commentedSubscribe. It would be appreciated to have addtional checkbox «Display only on full node view» in node add/edit form.
Comment #3
SFlack commentedIt's just a matter of checking $view_mode before loading CSS/JS, and adding a checkbox style option, I would assume? I've already done the first bit as my site only needs it in full views currently.
Comment #4
damienmckennaThis should be done as either:
I suspect the first option would be easier.
Comment #5
damienmckennaMarked #1589138: Search Results page as a duplicate.
Comment #6
damienmckennaLets review this. It'll probably need to be rerolled, but I want to include it in the next release.
Comment #8
damienmckennaComment #9
damienmckennaThis appears to work. It adds a new "View modes" option to each content type settings page, that defaults to "Full content" and "Teaser".
Comment #10
damienmckennaComment #11
damienmckennaCommitted.
Comment #12
damienmckennaReady for backporting to D6.
Comment #13
damienmckennaComment #14
damienmckennaThe D6 version of this module is no longer supported, so I'm closing this issue.