Or if you want to avoid pre-execution, this will work too:
<reddot:cms>
<if>
<query valuea="Context:CurrentRenderMode" operator="==" valueb="Int:2">
<htmltext>
<style type="text/css">
@import "<%css_basic%>";
</style>
</htmltext>
</query>
<query type="else">
<htmltext>
<link rel="stylesheet" type="text/css" media="screen"
href="<%css_basic%>" />
</htmltext>
</query>
</if>
</reddot:cms>
2009/2/6 Pete Wilson <[email protected]>
> Hi,
>
> If you want to utilise both methods, you can try the following code:
>
> <!IoRangePreExecute>
> <% If "<%info_sessionkey%>" <> "" Then %>
>
> <% Else %>
> <style type="text/css">
> @import "<%css_basic%>";
> </style>
>
> <% End If %>
> <!/IoRangePreExecute>
> Rgds
> Pete
> 2009/2/5 JJB <[email protected]>
>
>
>> Hi Amber,
>>
>> I ran into a similar CSS issue. What I discover is if you use
>> @import, SmartEdit will not import the CSS.
>>
>> will not work
>> <style type="text/css" media="screen">
>> @import url(/styles/global.css);
>> </style>
>>
>> will work
>> <link rel="stylesheet" href="/styles/global.css" type="text/css" />
>>
>> Cheers,
>> Jamie
>>
>>
>> On Feb 5, 10:06 am, djaeger <[email protected]> wrote:
>> > We had the same problem with a new set of content classes and RedDot
>> > support suggested going through the html and style sheets to identify
>> > the cause. We did that and it turned out to be improperly coded html
>> > and a few styles that were in conflict with one another.
>> >
>> > On Feb 4, 5:50 am, Amber <[email protected]> wrote:
>> >
>> > > The page preview in Smart Tree and Live site is fine. How ever the
>> > > stylesheet is not applied properly in Smart Edit. Any clue about the
>> > > issue. >>
>>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---