Hoe kan ik content_image combineren met CGSmartImage?
De gekozen afbeelding moet een bepaalde grootte hebben.
Dan zal CGSmartImage een goede keuze zijn lijkt me, al heb ik die module nooit echt goed kunnen toepassen.
De content_image tag geeft op de ene website trouwens alleen de naam van de afbeelding, dus bijv. afbeelding.jpg en waar ik nu bezig ben, genereert hij de hele img-tag.
content_image en CGSmartimage
Moderator: velden
- timdebuurman
- Power Poster
- Posts: 891
- Joined: Sun Nov 06, 2011 8:15 pm
- Location: Deventer, Netherlands
content_image en CGSmartimage
NextDoorMedia - Online Marketing Partner
https://www.nextdoormedia.nl
https://www.nextdoormedia.nl
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: content_image en CGSmartimage
Try this:
Code: Select all
{content_image block='foo' urlonly=1 assign='foo'}
{CGSmartImage src=$foo width=150 height=150}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
- timdebuurman
- Power Poster
- Posts: 891
- Joined: Sun Nov 06, 2011 8:15 pm
- Location: Deventer, Netherlands
Re: content_image en CGSmartimage
thx, works perfect.
how should i do this with ListIt2?
I try this:
Made a choose file field and put this in template:
{CGSmartImage src=$item->fielddefs.afbeelding.value filter_croptofit='820,257'}
but no result, no output.
how should i do this with ListIt2?
I try this:
Made a choose file field and put this in template:
{CGSmartImage src=$item->fielddefs.afbeelding.value filter_croptofit='820,257'}
but no result, no output.
NextDoorMedia - Online Marketing Partner
https://www.nextdoormedia.nl
https://www.nextdoormedia.nl
Re: content_image en CGSmartimage
Controleer of het pad naar de afbeelding volledig is.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: content_image en CGSmartimage
http://www.smarty.net/docs/en/language. ... quotes.tpl
Kijk even naar het backtick verhaal. En wat Rolf zegt. (gebruik de {debug} tag in je ListIt template)
Kijk even naar het backtick verhaal. En wat Rolf zegt. (gebruik de {debug} tag in je ListIt template)