[SOLVED] how to use the tag {content_image}

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
giapippo
Forum Members
Forum Members
Posts: 176
Joined: Tue Feb 28, 2012 1:24 pm

[SOLVED] how to use the tag {content_image}

Post 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
Last edited by giapippo on Thu May 07, 2015 12:46 pm, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: how to use the tag {content_image}

Post by Rolf »

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
giapippo
Forum Members
Forum Members
Posts: 176
Joined: Tue Feb 28, 2012 1:24 pm

Re: how to use the tag {content_image}

Post 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
Attachments
error visualiz
error visualiz
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1978
Joined: Mon Jan 29, 2007 4:47 pm

Re: how to use the tag {content_image}

Post 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"
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
giapippo
Forum Members
Forum Members
Posts: 176
Joined: Tue Feb 28, 2012 1:24 pm

Re: how to use the tag {content_image}

Post 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
Post Reply

Return to “Modules/Add-Ons”