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.
Hello, I created a model view and labels are not displayed correctly. Here are the contents of my model views-view-field--sitemap--views-data-export--field-image.tpl.php :
<?php
$fields["field_image"]->content = '<image:loc>' . $field->original_value . '</image:loc>';
echo $fields["field_image"]->content;
the result is :
<image:loc>http://www.domaine.com/xxx.jpg</image:loc>
instead of :
<image:loc>http://www.domaine.com/xxx.jpg</image:loc>
Comments
Comment #2
zenimagine CreditAttribution: zenimagine commentedComment #3
zenimagine CreditAttribution: zenimagine commented