Schema and Microdata: How to add field content = myurlimage and Itemid = id_url in slideshow.tpl.php file?

antoniomanco's picture

Hi there

I'm adding directly in code: Schema Microdata and my website, but I have two problems:

1- I want to show the URL of my images in the slideshow.tpl.php module. I need only include the URL of the image in "content = url my first picture

As shown below:

I tried these codes php but without success:

print render($content['field_image']);

echo render(file_create_url($node->field_image['und'][0]['uri']));

thanks for your help


roald.umandal's picture

Hi antoniomanco, have you tried to set the fields data inside a variable, in hook_preprocess_page or node_preprocess_page and print the variable inside your tpl file, maybe I could help if you show some snippets on how you set your data in variable, btw is it a custom block or page? also have you tried to check if the variable is not empty and if not empty whats the value inside the variable?

Drupal Dojo

Group organizers

Group events

Add to calendar

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week