Page 1 of 1
[solved] 1.9.1 and content_image
Posted: Fri Nov 26, 2010 10:22 pm
by falkencreative
Hello all. I used CMSMS back when it was around 1.6, and I have recently come back to it on a new project.
I'm having some trouble with the standard "{content_image block='image1'}" tag. If I place this in a template, I'm currently getting a "Error retrieving file list" message. Everything I have read seems to indicate that it should work with 1.9.1...
Is there anything I should check?
Re: 1.9.1 and content_image
Posted: Sat Nov 27, 2010 8:19 am
by RonnyK
I think that there are no images in the uploads/images folder then....
Ronny
Re: 1.9.1 and content_image
Posted: Sat Nov 27, 2010 5:06 pm
by falkencreative
Looks like that is part of the problem... I'm surprised I don't get a more understandable "No images found" message though. Adding images to the uploads directory fixed the issue.
However, can I use the dir="" attribute to specify a folder within the images folder? For example, instead of selecting files from "images" could I select from "images/layout"? When I've tried this so far, it seems to ignore my input and show any files within my uploads directory instead.
Re: 1.9.1 and content_image
Posted: Sat Nov 27, 2010 7:18 pm
by Dr.CSS
It helps to read the tags Help, /uploads/images/folder/...
Re: 1.9.1 and content_image
Posted: Sat Nov 27, 2010 9:40 pm
by RonnyK
And in 1.9-series, there is a field in GlobalSettings, where you can set the default for the call...
Path for {content_image} tag:
Ronny
{FIXED} Re: 1.9.1 and content_image
Posted: Mon Nov 29, 2010 12:23 am
by falkencreative
@Dr. CSS:
In my defense, all the help says about the tag is:
"(optional) dir - The name of a directory (relative to the uploads directory, from which to select image files. If not specified, the uploads directory will be used.
Example: use images from the uploads/images directory.
{content_image block='image1' dir='images'}"
I had checked the help before I posted. I've tried a variety of options ("/uploads/images/layout/", "images/layout", with and without beginning/ending slashes, etc.) and I haven't had any luck.
@Ronny:
Thanks, but that specifies a single folder ("Relative to the uploads path, specify a directory name"). Putting in multiple directories (for example, "images/layout") doesn't seem to do anything.
Now worries though, I'll go about this in a different way.