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'.

CommentFileSizeAuthor
#1 cck_migrate_exclude-1226678.patch2.88 KByched
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

yched’s picture

Status: Active » Needs review
FileSize
2.88 KB

Attached 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 ?

yched’s picture

Issue summary: View changes

added link to the original issue

colan’s picture

Version: 7.x-2.x-dev » 7.x-3.x-dev
Issue summary: View changes
Status: Needs review » Fixed

Code looks good. Committed in 5bd112f.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.