First of all, thanks for such an awesome module. Modules like this make using drupal a pleasure.

I wanted to mass edit nodes of a type very similar to Page (the use case is almost identical to the one given on the Module home page for editing Pages)

I found the text area for the Body field had only 2 rows. So I looked into the code and made a change around line 149 - namely:

  if (isset($elements[$field])) {
    if ($elements[$field]['#type'] == 'textarea') {
      $elements[$field]['#resizable'] = FALSE;
      $elements[$field]['#rows'] = 20;
    }

Is there a UI way to achive this? It would be cool to have more config for the module - e.g. the ability to specify the number of new node forms in the view.

Thanks again for such an effective module.

Comments

savinsur’s picture

If you need to change the columns adjust:

modules/editview/theme/editview.theme.inc

and add the 'cols' tag after rows line: (around line 147)

function _editview_form_field(&$elements, $field) {
if (isset($elements[$field])) {
if ($elements[$field]['#type'] == 'textarea') {
$elements[$field]['#resizable'] = TRUE;
$elements[$field]['#rows'] = 20;
$elements[$field]['#cols'] = 100;
}

You may have to also edit your SYSTEM.CSS file. On my theme
I had to comment out the width clarification:

html.js .resizable-textarea textarea {
margin-bottom: 0;
/* width: 100%; */ <------------- commented out so that the cols works above
display: block;
}

13rac1’s picture

Status: Active » Fixed

DO NOT MODIFY CORE CODE. http://drupal.org/node/144376

Please research hook_form_alter() and just override the CSS for that field.

Also, closing old issue.

Status: Fixed » Closed (fixed)

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