Posted by sushilmasti on June 23, 2009 at 6:10pm
Jump to:
| Project: | Editview |
| Version: | 6.x-1.0-beta1 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
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:
<?php
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
#1
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;
}