[SOLVED] content option image tag not accepted

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
User avatar
thomahawk
Power Poster
Power Poster
Posts: 312
Joined: Fri Jul 25, 2008 10:13 am

[SOLVED] content option image tag not accepted

Post 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!
Last edited by thomahawk on Thu Oct 18, 2012 12:19 pm, edited 1 time in total.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1975
Joined: Mon Jan 29, 2007 4:47 pm

Re: content option image tag not accepted

Post 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
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
User avatar
thomahawk
Power Poster
Power Poster
Posts: 312
Joined: Fri Jul 25, 2008 10:13 am

Re: [SOLVED] content option image tag not accepted

Post by thomahawk »

Thank you very much, now I got it working!
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am

Re: [SOLVED] content option image tag not accepted

Post 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.
User avatar
thomahawk
Power Poster
Power Poster
Posts: 312
Joined: Fri Jul 25, 2008 10:13 am

Re: [SOLVED] content option image tag not accepted

Post 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
Locked

Return to “[locked] Installation, Setup and Upgrade”