Page 1 of 1

Default in content block being substituted

Posted: Tue Feb 24, 2015 4:50 pm
by crb11
I have the following in my template:

{content block="header image" default="{swfobject swf='uploads/header.swf' width='736' height='164'}"}

However, when I create a page with this template, the default has changed to

<p>$_tmp1</p>

(and this is also what is displayed).

A more standard default works fine. What am I doing wrong?

Thanks,

Colin

CMS Install Information
CMS Version 1.11.12

Installed Modules
CMSMailer 5.2.2
CMSPrinting 1.0.5
FileManager 1.4.5
MenuManager 1.8.6
MicroTiny 1.2.8
ModuleManager 1.5.8
News 2.14.4
Search 1.7.11
ThemeManager 1.1.8

Re: Default in content block being substituted

Posted: Tue Feb 24, 2015 8:13 pm
by Rolf
As far as I know the "default" parameter can only contain plain text, not a Smarty tag...

ps. is this what you are looking for?
https://www.cmscanbesimple.org/blog/ass ... e-per-page

Re: Default in content block being substituted

Posted: Thu Feb 26, 2015 10:22 pm
by crb11
Ah. I think that's true, but didn't realise what I had was a smarty tag. (I'm relatively new to CMSMS, having inherited a site and trying to tidy it up a bit.)