Page 1 of 1

[solved] {content_image} doesn't seem to be working

Posted: Wed Jul 27, 2011 9:36 am
by chillifish
In my template, I've put

Code: Select all

{content_image block='image1' alt="Main'}
as recommended.

I've uploaded my images to image manager and they're showing. They're also showing in the drop down on my content page options. For my homepage, it just wouldn't show up, it kept wanting to show an image called 'logo.gif' which I had deleted (it was the SMSCS logo IIRC).

I probably, stupidly, went into the database with phpmyadmin and changed the url in the properties table to the correct image from the logo.gif and all is well on the homepage. This seemed to work a treat.

However, subsequent pages I'm creating aren't showing the image I have selected for them. When inspecting the output html, it's not missing as it can't find the url like it was before – the html for the image isn't even there. It's as if I haven't selected an image in the page options.

Re: {content_image} doesn't seem to be working

Posted: Wed Jul 27, 2011 10:28 am
by chillifish
I've also, just noticed that in the main content editor bit, just under the Tiny MCE editor, there's a bit that reads:

image1:
Error retrieving file list

Don't know if that helps…

Re: {content_image} doesn't seem to be working

Posted: Wed Jul 27, 2011 11:08 am
by RonnyK
on what version of CMSMS are you. Also, in the call you have a " followed by a ' so some inconsistancy. In later versions, in Global Settings, the directory for the image can be set.

Ronny

Re: {content_image} doesn't seem to be working

Posted: Wed Jul 27, 2011 11:20 am
by chillifish
Cheers. The version is: 1.9.4.2 "Faanui". I may try removing the "alt" if you think it might make a difference.

Re: {content_image} doesn't seem to be working

Posted: Wed Jul 27, 2011 11:49 am
by RonnyK
I dont say that you should remove the alt-tag...

I was only saying that
alt="Main'
should be
alt="Main"
instead.

Ronny

Re: {content_image} doesn't seem to be working

Posted: Wed Jul 27, 2011 11:51 am
by chillifish
Aah! Good spot. I'm terrible for doing things like that. I'll give it a whirl.

Re: {content_image} doesn't seem to be working

Posted: Wed Jul 27, 2011 12:07 pm
by chillifish
Yeah, changed that, but hasn't made any difference unfortunately. :(

Re: {content_image} doesn't seem to be working

Posted: Fri Jul 29, 2011 8:58 am
by chillifish
Now solved! The content_image plug in views the uploads folder by default, not the images folder, so adding dir='images' has worked, yippee!