By jtjones23 on
Hi,
I enabled the description field (used by Lightbox for the caption) on the Imagefield module but I need the max size to be a little larger than 128 characters. Can someone point me to the file where this size limitation is located? I searched the imagefield and filefield module files to no avail.
Thanks
Drupal 6.8
FileField 6.x-3.0-alpha5
ImageField 6.x-3.0-alpha2
Comments
Have a look at
Have a look at imagefield_widget.inc - you could hack it, and change the '#alt_settings #type' from textfield to textarea. For a more long term solution see this thread.
Thanks for the pointer. I
Thanks for the pointer. I changed the textfield in imagefield_widget.inc to a textarea but that does not seem to make any difference. Any other suggestions?
There's no solution yet but
There's no solution yet but here's the feature request issue : http://drupal.org/node/349944
Around line 215 of
Around line 215 of filefield_widget.inc
It worked for me and loads fine. In my node-slideshow.tpl.php (slideshow is my content type) I used:
print $node->field_photo['0']['data']['description'];And now I have a nice textarea per image and a "title" called caption for my client.
I will be putting something into my utility module, but this is a short term solution (quick fix).
It stores and loads fine.
------------------------------
i do stuff
------------------------------
i do stuff
This is Configurable
Just add the following to settings.php...
$conf['filefield_description_length'] = 1024;
$conf['filefield_description_type'] = 'textarea';
Thx a lot Devin! This worked
Thx a lot Devin! This worked perfectly!
I have noticed one problem:
I have noticed one problem: maxlength is not specified for textareas in HTML, so you might want to implement some JS to validate the max. length of the textarea input.
Learn more here: http://www.cs.tut.fi/~jkorpela/forms/textarea.html
I could not get this to work
I could not get this to work but this did work
I guess what I would really like to know is how did you even know to look for it in the $conf variables
It's working for me
Thanks Devinfoley
I couldn't get anything
I couldn't get anything listed here to work for me. Also had tried to do this with a hook_form_alter, but couldn't find the maxlength in $form. Luckily the solution listed at http://viju.tvercity.net/en/weblog/drupal-6-how-change-description-textf... worked for me. Just add the following into a module:
Works for me !!
Thanks a lot.
@ scalp or anyone - thanks
@ scalp or anyone - thanks but what does...
"Just add the following into a module:"
...mean?
Where does the snippet go?
Cambios en filefield
Muchas gracias, son las 23:00 y esto me ha salvado la noche,
Es simple, en el directorio modules/filefield editar filefield.module y agregar en la segunda línea es decir después del <?php
variable_set('filefield_description_length', 250);
variable_set('filefield_description_type', 'textarea');
Also Works For Me !!!!
Thanks A alot scalp that was helpful
Create a simple Drupal module
How to create a simple Drupal 6 module in three easy steps: http://drupal.org/node/416986
Test format
Tanks, but the description is in plaintext format. Is IT possible to use filtered or full html for the file description ?
https://www.jbfelix.be