hello,
in module NEWS I added an img field
{$entry->fields['immagine']->value}
now I have to call this image with absolute URL to complete this
<meta property="og:image" content=" ">
What can I use? If I write www-mysite.com/uploads/news/{$entry->fields['immagine']->value}
I don't include subdirectories of news.
The address complete is www-mysite.com/uploads/news/16/71/imagename.jpg for example.
Have you already done this in some way?
Thanks
Module news img url
Re: Module news img url
From the sample detail template of the News module (CMSMS 2.1.1):
Which in your case should be:
Further down the template:file_location (string) = A url containing the location where files attached the article are stored... the field value should be appended to this url.
Code: Select all
<img src="{$entry->file_location}/{$field->value}"/>Code: Select all
{$entry->file_location}/{$entry->fields['immagine']->value}Re: Module news img url
PERFECT!!!
Thank you thank you tank you
Thank you thank you tank you


