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.
Hi,
I have used media latest dev version (7.x-2.0-alpha4) and file_entity 7.x-2.0-beta1.
Already alt and title fields are available while uploading image via wysiwyg editor. Now i want to add caption field for image.
I have added caption field at admin/structure/file-types/manage/image/fields
It keeps the caption value of a image. But when i tried to display page, it displays only image and image caption is not displayed.
How to solve this problem?
Comments
Comment #1
phponwebsites CreditAttribution: phponwebsites commentedHi,
I applied patch from https://www.drupal.org/files/issues/media_wysiwyg.filter.inc_.patch to avoid display of contextual link referenced by https://www.drupal.org/node/2401811.
It is working fine. But the caption field didn't display because the view mode of file has been removed at this patch. So i removed that patch.
Now the caption text is displayed well but the contextual link also dsipalyed with caption text.
I need to avoid to display contextual link.
Now i get below error "
"
Comment #2
osopolarMaybe the issue #1515186: Current best practice for WYSIWYG Image Insert #14 will help you.
Comment #3
Devin Carlson CreditAttribution: Devin Carlson commentedThis is now fixed with #2194821: Embedded media objects should honor display suite settings and #2401811: With Media WYSIWYG enabled - "Contextual links" are shown for anonymous users.
Comment #5
odizle CreditAttribution: odizle commentedSorry to reopen this, but I have the same error on my website.
I saw the 2 links @Devin Carlson send or the issues both committed to 2.7x and this is what I am using.
I also tried to us Dev version but got the same error.
Is there anything I'm doing wrong?
Comment #6
odizle CreditAttribution: odizle commentedJust updating for future reference to anyone who might have this error.
Check this issue, this what solved the problem on my website.
Unchecking the "Override in WYSIWYG" option fixed the issue.
@ Home » Administration » Structure » File types » [File Type] » Manage fields and edit the reference fields
Comment #7
kenorb CreditAttribution: kenorb commented