Page 1 of 1

Embedded CSS styles cause all page content to vanish

Posted: Thu Jun 15, 2006 10:22 pm
by Tanner
Hello.

When adding an embedded CSS style to any page within a CMSMS site, the entire page content then fails to render resulting in either a blank screen or a shell of the site with no content. Is there any fix for this do you think? Below is an example bit of code to show you what I mean, if you put it into any content page you should see the same results as I do.

Code: Select all

<style type="text/css">
<!--
.myStyle {color: #FF0000}
-->
</style>
<p class="myStyle">This is a test.</p>
<p>This is another test.  </p>
I am currently using version 0.12.1 of CMSMS. Thank you.

Re: Embedded CSS styles cause all page content to vanish

Posted: Fri Jun 16, 2006 5:11 am
by cyberman
Have you tried this:

Code: Select all

{literal}<style type="text/css">
<!--
.myStyle {color: #FF0000}
-->
</style>{/literal}
The CMSms output is parsed by smarty. If smarty can't parsed someone you will see a blank page. With {literal}{/literal} tags you can make smarty blind for the included code  ;).

Re: Embedded CSS styles cause all page content to vanish

Posted: Fri Jun 16, 2006 4:07 pm
by Tanner
Yes, that is exactly what I was looking for  ;D.  Thanks man, guess I wasn't aware of the command before!