Page options image

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
beherenow_uk
Forum Members
Forum Members
Posts: 103
Joined: Fri Nov 28, 2008 11:26 am

Page options image

Post by beherenow_uk »

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.
mcDavid
Power Poster
Power Poster
Posts: 377
Joined: Tue Mar 31, 2009 8:45 pm
Location: Delft, Netherlands

Re: Page options image

Post by mcDavid »

Just take a look at the help-page for the tag:
(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.
Of course after you assign a variable you can use it in an {if} statement.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Page options image

Post by Dr.CSS »

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...
beherenow_uk
Forum Members
Forum Members
Posts: 103
Joined: Fri Nov 28, 2008 11:26 am

Re: Page options image

Post by beherenow_uk »

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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Page options image

Post by Dr.CSS »

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
janvl
Power Poster
Power Poster
Posts: 947
Joined: Wed Aug 13, 2008 10:57 am

Re: Page options image

Post by janvl »

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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Page options image

Post by Dr.CSS »

You can add folders to uploads/images to hold different images in different folders, or install tinyMCE and enable file management for more options...
Post Reply

Return to “CMSMS Core”