help cmsms changes my code
Posted: Thu Jan 03, 2013 8:20 pm
Hi everyone,
I have looked everywhere but I can't seem to find the solution so I'll post my problem. Usually I use the following to stop Smarty from parsing my code:
{literal}
...
{/literal}
But does not seem to work in this case. I have a page containing the following code:
As you can see a (flash) animation is included in the page. When I save this it works fine. However if I open the page again, cmsms suddenly shows the following:
Note that the "embed src" tag has gone missing. When saving again my (flash) animation will stop working. Now I know not to touch that page again but unfortunately my client will surely forget!
What am I missing here? Shouldn't CMSms leave my stuff withing the {literal} tags untouched?
I don't really want to use the (marked as stale) swfobject because my code works just fine without it. That is if CMSmadeSimple doesn't change my code within literals.... Anybody any idea how to keep CMSms from changing my code?

I have looked everywhere but I can't seem to find the solution so I'll post my problem. Usually I use the following to stop Smarty from parsing my code:
{literal}
...
{/literal}
But does not seem to work in this case. I have a page containing the following code:
Code: Select all
{literal}
<p align="center">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="958" height="650" id="animatie1" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="animatie1.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="animatie1.swf" quality="high" bgcolor="#ffffff" width="958" height="650" name="animatie1" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</p>
{/literal}
Code: Select all
{literal}
<p align="center"><object id="animatie1" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="958" height="650" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="animatie1.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /></object></p>
{/literal}
What am I missing here? Shouldn't CMSms leave my stuff withing the {literal} tags untouched?
I don't really want to use the (marked as stale) swfobject because my code works just fine without it. That is if CMSmadeSimple doesn't change my code within literals.... Anybody any idea how to keep CMSms from changing my code?