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.
This is happening when you insert a simple text field to media:thumbnail. Should we make a preproccess for this case?
media:thumbnail looks like this:
<media:thumbnail>http://browse-tutorials.com/sites/browse-tutorials.com/files/tutorials-images/inner-join.png</media:thumbnail>
should be like:
<media:thumbnail url="http://browse-tutorials.com/sites/browse-tutorials.com/files/tutorials-images/inner-join.png />
Comments
Comment #1
maciej.zgadzaj CreditAttribution: maciej.zgadzaj commentedThe
<nedia:thumbnail>
element is not designed to work with simple text fields. As per documentation you should use eitherimage
,file
/media
orvideo
field for this element. Otherwise, yes, you would need to write your own preprocess function to format the output correctly.Comment #1.0
maciej.zgadzaj CreditAttribution: maciej.zgadzaj commentedSpecify