CGBlog image full path
Posted: Wed Dec 09, 2020 6:41 pm
I am trying to work how to get the full path from the a image.
I am only geting part of the path
The path should be https://www.site.org.uk/uploads/images/ ... 030484.jpg
but only getting https://www.site.org.uk/uploads/Gallery/119030484.jpg
At the monent I got hard code /images/ which only works if I put a image inside /uploads/images
What tag should be using
Thank you for your help guys.
I am only geting part of the path
The path should be https://www.site.org.uk/uploads/images/ ... 030484.jpg
but only getting https://www.site.org.uk/uploads/Gallery/119030484.jpg
At the monent I got hard code /images/ which only works if I put a image inside /uploads/images
What tag should be using
Code: Select all
{if $field->type == 'image_select'}
{$field->name}: <img src="{uploads_url}/images/{$field->value}" alt="{$field->value}"/>