Hi Bobby,

Another solution I used to use a lot was an anchor/container system.
When published the CSS would be published as a separate file and
referenced, but in SmartEdit and Preview mode it would be embedded
directly into the HTML.  This allowed the CSS to be cached when
published, but avoided MIME-type problems in CMS.  The code was
something like:

<reddot:cms>
  <if>
    <query valuea="Context:CurrentRenderMode" operator="=="
valueb="Int:2">
      <!-- Published mode -->
      <htmltext>
        <style type="text/css" href="<%anc_css%>" />
      </htmltext>
    </query>
    <query type="else">
      <!-- Preview or SmartEdit mode -->
      <htmltext>
        <style type="text/css">
          <%con_css%>
        </style>
      </htmltext>
    </query>
  </if>
</reddot:cms>

There are pros/cons for keeping the CSS in RedDot or working with it
externally, but if you want to keep it in CSS this was the best way I
found to handle it.

- Eric

On May 12, 12:44 pm, bobbykjack <[email protected]> wrote:
> Hi all,
>
> I'm trying to deal with the (seemingly commonly known) RedDot bug
> relating to the Mime-Type of a CSS file. Since Firefox rejects
> stylesheets with the wrong mime-type, and RedDot CMS serves all
> template-based content as text/html, there's a page-preview/smart edit
> problem when the two combine.
>
> I've noticed this previous thread on the subject:
>
> http://groups.google.com/group/reddot-cms-users/browse_thread/thread/...
>
> but adding "&Script=1" doesn't solve the problem for me. I've also
> seen what happens when a media element is used instead (as suggested
> in that thread), and it seemed like a lot of hard work when styles
> change fairly frequently (as they do in our case).
>
> Has anyone come up with a proper solution for this?
>
> Cheers,
>
> - Bobby
>
> --
> You received this message because you are subscribed to the Google Groups 
> "RedDot CMS Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group 
> athttp://groups.google.com/group/reddot-cms-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/reddot-cms-users?hl=en.

Reply via email to