The CCK CMIS Field field type does not display the defined label in either the node view or edit form. This might be a minor issue for some, but if there are multiple CMIS Fields defined for a content type, it could become confusing for users.

CommentFileSizeAuthor
#3 cmis_field.zip1.32 KBndelattre
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

adamtyoung’s picture

Priority: Normal » Major

Any progress on this? This problem makes the field unusable.

ndelattre’s picture

Is there any workaround? The module is not usable with this.

ndelattre’s picture

FileSize
1.32 KB

The code to display label is not setted.
So adding this line(+) in cmis_field.module seems to do the workaround! :
$element['title'] += array(
'#type' => 'textfield',
'#default_value' => $title,
'#attributes' => array('class' => array('edit-field-cmis-field')),
+ '#title_display' => 'before',
+ '#title' => check_plain($instance['label'])
);
Find the file cmis_field.module in attachment (in a zip file)

IanNorton’s picture

Assigned: Unassigned » IanNorton
Status: Active » Reviewed & tested by the community

Thanks firewire77 & ndelattre for raiding and fixing this.

IanNorton’s picture

Status: Reviewed & tested by the community » Closed (fixed)

Fixed in 7.x-1.3 release