I want functionality where editor will be able to upload files and name that files whatever he wants, I just want additional field next to file upload field, is there any module which can do that?
Thanks.
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.
Sign up to join this communityI want functionality where editor will be able to upload files and name that files whatever he wants, I just want additional field next to file upload field, is there any module which can do that?
Thanks.
This functionality is already provided by Drupal core. Just edit the settings for your image field in content type and enable 'Enable Title field' to have Title field for your image field.
For example, Go to 'Structure » Content types » Article' and 'Edit' the settings for 'Image' field. (admin/structure/types/manage/article/fields/field_image)
There you will see two checkbox fields 'Enable Alt field' and 'Enable Title field' which can be enabled to provide image related info for each image upload.
alt=
and title=
attributes within the resulting <img>
tag; they don't cause the uploaded file to be renamed value of title/alt
.
Nov 7, 2013 at 13:24
I solved it using insert module, it did exactly what I wanted.
When I upload any file for example .pdf, there is a description field for every file.
insert module also integrates with ckeditor, every uploaded file has "Send to textarea" button and you can easily embed links to attachments wherever you want in your editor and title will be the text you entered in file description.
It is not file name, its just title for link but its exactly what I wanted.
UPDATE @amitgoyal's answer is better, so I checked his answer as correct.