I'm using ListItExtended and I've used it before but I don't have access to the site I used it on anymore. Can someone please show me how I display an uploaded image instead of the link to the image.
Thanks
[SOLVED] ListItExtended Display images not link
[SOLVED] ListItExtended Display images not link
Last edited by delve2013 on Wed Aug 28, 2013 12:38 pm, edited 1 time in total.
Re: ListItExtended Display images not link
Example that also uses CGSmartImage
Without CGSmartImage:
where 'afbeelding' is the alias of the file field definition of course.
EDIT: improved first example. (Thanks Stikki)
Code: Select all
{foreach from=$items item=item}
{CGSmartImage src=$item->afbeelding filter_resize='h,150' title=$item->title noembed=1}
{/foreach}Code: Select all
{foreach from=$items item=item}
<img src="{uploads_url}/{$item->afbeelding}" alt="" />
{/foreach}EDIT: improved first example. (Thanks Stikki)
Re: ListItExtended Display images not link
I've attempted to use both examples and they both kill the css on the page and the image cannot be found either.
Ok so I got it working, the path to the images was incorrect. This is what worked for me:
Thanks for your help guys, it's appreciated.
Ok so I got it working, the path to the images was incorrect. This is what worked for me:
Code: Select all
{foreach from=$items item=item}
<img src="{uploads_url}/images{$item->carimg}" alt="" />
{/foreach}
Last edited by delve2013 on Wed Aug 28, 2013 1:08 pm, edited 3 times in total.
Re: ListItExtended Display images not link
You really need to be a little more specific.
Post the template you use and the alias of the field definition you've created.
A link to the page would help too.
BTW, if you have a template that shows a working link to the image, how hard would it be to create an image of that?
<a href="this-is-what-youre-looking-for"> vs <img src="this-is-what-youre-looking-for" />
Post the template you use and the alias of the field definition you've created.
A link to the page would help too.
BTW, if you have a template that shows a working link to the image, how hard would it be to create an image of that?
<a href="this-is-what-youre-looking-for"> vs <img src="this-is-what-youre-looking-for" />


