Default in content block being substituted

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
crb11
New Member
New Member
Posts: 8
Joined: Fri Feb 13, 2015 3:29 pm

Default in content block being substituted

Post 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
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Default in content block being substituted

Post 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
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
crb11
New Member
New Member
Posts: 8
Joined: Fri Feb 13, 2015 3:29 pm

Re: Default in content block being substituted

Post 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.)
Post Reply

Return to “CMSMS Core”