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!
[SOLVED] content option image tag not accepted
[SOLVED] content option image tag not accepted
Last edited by thomahawk on Thu Oct 18, 2012 12:19 pm, edited 1 time in total.
Re: content option image tag not accepted
?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!
Check in http://docs.cmsmadesimple.org/layout/cr ... n-template further down after Common tags used in CMS Made Simple templates... HTHhttp://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.
"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!
* 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!
Re: [SOLVED] content option image tag not accepted
Thank you very much, now I got it working!
Re: [SOLVED] content option image tag not accepted
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
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
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