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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
chillifish
Forum Members
Forum Members
Posts: 92
Joined: Wed Jul 27, 2011 9:26 am

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

Post 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.
chillifish
Forum Members
Forum Members
Posts: 92
Joined: Wed Jul 27, 2011 9:26 am

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

Post 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…
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

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

Post 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
chillifish
Forum Members
Forum Members
Posts: 92
Joined: Wed Jul 27, 2011 9:26 am

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

Post 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.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

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

Post 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
chillifish
Forum Members
Forum Members
Posts: 92
Joined: Wed Jul 27, 2011 9:26 am

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

Post by chillifish »

Aah! Good spot. I'm terrible for doing things like that. I'll give it a whirl.
chillifish
Forum Members
Forum Members
Posts: 92
Joined: Wed Jul 27, 2011 9:26 am

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

Post by chillifish »

Yeah, changed that, but hasn't made any difference unfortunately. :(
chillifish
Forum Members
Forum Members
Posts: 92
Joined: Wed Jul 27, 2011 9:26 am

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

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

Return to “CMSMS Core”