Content Manager - how to display the 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
User avatar
caigner
Forum Members
Forum Members
Posts: 46
Joined: Sun Aug 16, 2020 5:29 am

Content Manager - how to display the image

Post by caigner »

In the Content Manager Module one can select an image on the Option tab.

The module help page says:
Image
This property allows associating a previously uploaded image with your this content item. Editors can select an image file from the uploads/images directory. This image may be displayed on the generated HTML page (if applicable), or used when building the navigation.
Unfortunately the help does not say what has to be done to display the image on the webpage.

What do I have to include in my template to display this image?

Code: Select all

{content_image} 
alone does not work and

Code: Select all

{content_image block="image1"}
inserts a new image input field (which I don't need as there is already one).

Please advise.
Thanks!
I am using CMSms 2.2.19
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1629
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Content Manager - how to display the image

Post by DIGI3 »

I generally use that field for building image navs, as it can be accessed in Navigator templates with $node->image. To access it in a page template you can use {$pageVars.pageImage}. Personally I'd use {content_image} instead as then you can set a lot more parameters and put it in a tab editors will find.
Not getting the answer you need? CMSMS support options
User avatar
caigner
Forum Members
Forum Members
Posts: 46
Joined: Sun Aug 16, 2020 5:29 am

Re: Content Manager - how to display the image

Post by caigner »

Ok, I will do as you suggested.

Thanks!
I am using CMSms 2.2.19
Post Reply

Return to “CMSMS Core”