CCK D6's "Display fields" tabs offered the (often misunderstood, and probably ill-advertized) 'exclude' checkbox.
When checked, the field was rendered using the select formatter, but the output was left out of the $content variable in node.tpl.php, and available in $FIELD_NAME_rendered variables for manual placement in the template, e.g. in isolated in a div floated to the left of $content (= "the rest").
Original issue : #300368: Easier node templating : Let fields be excluded from $content
This method is deprecated in favor of the new render() / hide() methods in D7, and the 'exclude' setting has no equivalent. As is, those fields will be displayed regularly after migration.
We should warn about that, especially since *many* site admins just mistook the 'exclude' checkbox as an equivalent of 'hidden'.
Comment | File | Size | Author |
---|---|---|---|
#1 | cck_migrate_exclude-1226678.patch | 2.88 KB | yched |
Comments
Comment #1
yched CreditAttribution: yched commentedAttached patch displays the following message :
"Deprecated 'exclude' option: The field_foo field uses the deprecated 'exclude' option in N view modes. This option will be ignored, and the field will be displayed with the selected formatters."
(there might be a better wording ?)
Side note : If I'm not mistaken, messages are displayed in each field's row in the migration overview table. If so, do we really need to repeat the field name in the message ?
Comment #1.0
yched CreditAttribution: yched commentedadded link to the original issue
Comment #2
colanCode looks good. Committed in 5bd112f.