Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#3 | cmis_field.zip | 1.32 KB | ndelattre |
Comments
Comment #1
adamtyoung CreditAttribution: adamtyoung commentedAny progress on this? This problem makes the field unusable.
Comment #2
ndelattre CreditAttribution: ndelattre commentedIs there any workaround? The module is not usable with this.
Comment #3
ndelattre CreditAttribution: ndelattre commentedThe 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)
Comment #4
IanNorton CreditAttribution: IanNorton commentedThanks firewire77 & ndelattre for raiding and fixing this.
Comment #5
IanNorton CreditAttribution: IanNorton commentedFixed in 7.x-1.3 release