Hi all,
Probably a really simple one, but I am trying to utilise the page image (found in the options tab of a page). But can't seem to find an documentation on it?
What I'm trying to do is: Firstly, Show the image in the template, then edit the path so the drop down only shows a certain directory. And finally only show it if an image is selected. Otherwise I get the Red cross or question mark of Safari.
I did find this post (http://forum.cmsmadesimple.org/viewtopic.php?t=42748) from 2008 but it doesn't appear to work in CMSMS 1.10.3.
Please help!
Thanks.
Page options image
Re: Page options image
Just take a look at the help-page for the tag:
Of course after you assign a variable you can use it in an {if} statement.(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.
(optional) assign (string) - Assign the results to a smarty variable with that name.
Re: Page options image
It defaults to uploads/images, if you want all pages to take the images from a specific folder you can change the path in Site admin > Global settings > Content Editing settings in the last box Path for {content_image} tag: or else use the Extensions > Tags > Content image Help parameters...
-
- Forum Members
- Posts: 103
- Joined: Fri Nov 28, 2008 11:26 am
Re: Page options image
Ahh ok that's cool. I actually have ended up using the {content_image} tag with parameters. Just out of interest how do you even call the aforementioned image tag? I've been using cmsms for a while and never used it or the other other extra boxes in the options tab!
Cheers, Karl.
Cheers, Karl.
Re: Page options image
This is how to use the {page_image} tag which gets it's image from the Image: select in the options tab, I am using it in the menu <img src="{$node->image}" alt="{$node->image}" /> where it would say {$node->menutext} normally...
http://dezertdesign.com/pill-dock.html
http://dezertdesign.com/pill-dock.html
Re: Page options image
Hi,
i am using 1.10.3 and microtiny, I need to change the settings so that when a page is edited and an image is inserted, the directory for the images is "/uploads" instead of "/uploads/images"
I tried to change that in "Site-administration" - "Settiings for content-editing"
But with no results, it will not accept ".."
Or can I change something in microtiny so it shows the directory above when I want to select an image?
How do I change this?
[EDIT] I do not need to change it, I just put the images in the right place, that is far easier!
Still, it would be nice if one hat the possibility to jump through more directories, like with the filemanager where you can choose to see all files.
Thanks,
Jan
i am using 1.10.3 and microtiny, I need to change the settings so that when a page is edited and an image is inserted, the directory for the images is "/uploads" instead of "/uploads/images"
I tried to change that in "Site-administration" - "Settiings for content-editing"
But with no results, it will not accept ".."
Or can I change something in microtiny so it shows the directory above when I want to select an image?
How do I change this?
[EDIT] I do not need to change it, I just put the images in the right place, that is far easier!
Still, it would be nice if one hat the possibility to jump through more directories, like with the filemanager where you can choose to see all files.
Thanks,
Jan
Re: Page options image
You can add folders to uploads/images to hold different images in different folders, or install tinyMCE and enable file management for more options...