Hey,
I’ve Made a chunk that displays a list of partners the only thing is I can’t get the images to load, Is there some variable I can append to "assets/images/partners/newgrounds.gif" to make it find it. Or which directory are chunks called from? The chunk is being embedded in my template.
Hi,
a chunk is just a piece of HTML code (as you know if you’ve created one).
To that end, if you want to display an image you will have to use an img tag:
<img src="assets/images/partners/newgrounds.gif" title="New grounds" alt =" New Grounds">
or am I missing something?
Taff
Adrian Lawley: www.adrianlawley.com
Check if you have the / before the reference, that will not work in MODx site, I think it has to do with the base tag. I ran into this problem and this resolved it.
assets/images/partners/newgrounds.gif -> this works
/assets/images/partners/newgrounds.gif -> this will not
Indeed if you have relative path enabled not slash at the beginning, and if it’s not enabled prepend with [(site_url)], e.g [(site_url)]assets/images/partners/newgrounds.gif and it should work... but relative path are better since you can move your site without having to edit all paths...
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
Are you sure, images actually reside on the server under assets/images/ ?
yep there defiantly there
That’s really strange... it should work.
Do you have any funky tweaks in your .htaccess ?
Could we get an url ?
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id