Page 1 of 1
[SOLVED] how to use the tag {content_image}
Posted: Wed May 06, 2015 5:30 pm
by giapippo
Hello everyone.
I have to use the tags {content_image} but do not understand how to insert it into the structure of the page
<a class="page-box__picture" href="uploads/images/content/prog03-g.jpg" data-rel="prettyPhoto" title="Content image">
<img width="360" height="240" src="uploads/images/content/prog03-g.jpg" alt="Content Image" />
</a>
thanks for your help
Re: how to use the tag {content_image}
Posted: Wed May 06, 2015 7:55 pm
by Rolf
Re: how to use the tag {content_image}
Posted: Thu May 07, 2015 12:15 pm
by giapippo
hallo i have used this
<a class="page-box__picture" href="{content_image block='header_image' label='Header Image' dir='images'}" data-rel="prettyPhoto" title="Content image">
<img width="360" height="240" src="{content_image block='header_image2' label='Header Image' dir='images'}" alt="Content Image" />
</a>
but when I view the page by obtaining this error which I enclose
Re: how to use the tag {content_image}
Posted: Thu May 07, 2015 12:37 pm
by Jo Morg
Please
read the tag help page. There is plenty of info about how to use it:
content_image help wrote:(optional) urlonly='' - output only the url to the image, ignoring all parameters like id, name, width, height, etc.
use this parameter in your case
urlonly="1"
Re: how to use the tag {content_image}
Posted: Thu May 07, 2015 12:46 pm
by giapippo
great !!!
<a class="page-box__picture" href="{content_image block='header_image' label='Header Image' urlonly="1" dir='images'}" data-rel="prettyPhoto" title="Content image">
<img width="360" height="240" src="{content_image block='header_image2' label='Header Image' dir='images' urlonly="1"}" alt="Content Image" />
</a>
work perfect !!!
thanks