Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...applying two skinsapplying two skins
Previous
 
Next
New Post
9/4/2007 1:22 AM
 

iam using two different languges(arabic and english),iam uding DSlocalizer module to let the uses switch between them

,so what i want now is to apply two different skins on two different languges how can i do that?

 
New Post
9/4/2007 3:41 AM
 

afaik there is no option built into DSLocalizator, but some weeks ago, there was a discussion in this forum to include a .css file based on language.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/9/2007 6:07 PM
 

I think there is no need to use two skins.

I will show you what I tried, it looks okay, but I cannot read the arabic texts I used so I'm not 100% sure.

I added this code to the skin's ascx file:
<script runat="server">
    Function srenderRTL() as string
        If System.Globalization.CultureInfo.CurrentUiCulture.TextInfo.IsRightToLeft then
            return "rtl"
        Else
            return ""
        End If
    End Function
</script>

And the skin looks like this:

<div dir="<%=srenderRTL%>">
    <div class="contentpane" id="ControlPanel" runat="server">
    </div>
    <div>
        <dnn:LOGO id="dnnLOGO" runat="server"></dnn:LOGO>
    </div>
    <div>
        <dnn:LANGUAGE id="dnnLANGUAGE" runat="server" showMenu="False" showLinks="True"></dnn:LANGUAGE>
    </div>
    <div>
        <dnn:NAV id="dnnNAV" runat="server" NodeLeftHTMLBreadCrumbRoot='<img alt="*" BORDER="0" src="breadcrumb.gif"/>' CSSNodeHover="main_dnnmenu_itemhover" CSSBreak="main_dnnmenu_break" CSSContainerSub="main_dnnmenu_submenu" CSSIcon="main_dnnmenu_icon" CSSNodeRoot="main_dnnmenu_rootitem" CSSNode="main_dnnmenu_item" CSSContainerRoot="main_dnnmenu_container" CSSControl="main_dnnmenu_bar" ProviderName="DNNMenuNavigationProvider"></dnn:NAV>
    </div>
    <dnn:USER id="dnnUSER" runat="server"></dnn:USER>
    <dnn:LOGIN id="dnnLOGIN" runat="server"></dnn:LOGIN>
    <div id="ContentPane" runat="server">
    </div>
</div>

Now the culture you choose will set RTL for the containing div if needed. 

Could you please leave some comment on this, we can use it for future RTL development.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...applying two skinsapplying two skins


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out