Page 1 of 1

[SOLVED] content option image tag not accepted

Posted: Thu Oct 18, 2012 10:13 am
by thomahawk
Hello

Using CMSMS Isabela 1.11.2, I want to add the image tag in my template, which corresponds to the image dropdown menu from each page's options.

The online manual says its:

{$content_obj->GetPropertyValue('image')}

But when I put this into the template, it can not be saved, even if it is not embedded into any html tags.

The online manual looks quiet old. Maybe the tag has changed?

Thanks in advance for any help!

Re: content option image tag not accepted

Posted: Thu Oct 18, 2012 12:11 pm
by Jo Morg
thomahawk wrote:The online manual says its:

{$content_obj->GetPropertyValue('image')}

But when I put this into the template, it can not be saved, even if it is not embedded into any html tags.

The online manual looks quiet old. Maybe the tag has changed?

Thanks in advance for any help!
?
http://docs.cmsmadesimple.org wrote:{content_image} will be replaced with the Image selected in the Edit Page window, at the bottom of the screen with the block name you specify (i.e. MyImage). Use {content_image block='MyImage' dir='images'} for immediate results.

{page_image} will be replaced with the image filename selected on the Edit Page screen under Image. Use <img src="uploads/images/{page_image}" /> for immediate results.
Check in http://docs.cmsmadesimple.org/layout/cr ... n-template further down after Common tags used in CMS Made Simple templates... HTH

Re: [SOLVED] content option image tag not accepted

Posted: Thu Oct 18, 2012 12:19 pm
by thomahawk
Thank you very much, now I got it working!

Re: [SOLVED] content option image tag not accepted

Posted: Tue Oct 30, 2012 12:44 am
by applejack
Can you please confirm exactly what you have working i.e. page_image or content_image. If content_image then does this show on the front end. I am asking as I have tried this on 2 different installs of 1.11.2.1 and neither display the image though I can select when editing a page.

Re: [SOLVED] content option image tag not accepted

Posted: Tue Oct 30, 2012 7:27 am
by thomahawk
Hi applejack.
Sure. I used {page_image} in the template.

Embedded as a div background-image, a code may look like this:
<div class="top-image" style="background-image:url(uploads/images/{page_image});" >

Regards
Thom