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...Language and In...Language and In...Using text Links instead of Flags?  Help!Using text Links instead of Flags? Help!
Previous
 
Next
New Post
9/27/2011 12:27 PM
 
I am not using any third party modules like Apollo or anything.  We want to use text links instead of the flag images to switch languages.
I found the code below that does show text instead of flags - BUT when the admin switches the Mode to Layout - the site crashes.  It won't come back up until I comment the =Link

We really wanted to use the drop down selection but it always reverts back to English when were logged in.

Anyone have a working solution for this?

Thanks.

<script runat="server">
    Dim LinkChange As String
    
    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        If (Request.QueryString("language")) = "fr-CA" Then
            LinkChange = "<a href='/tabid/" & Me.PortalSettings.ActiveTab.TabID.ToString() & "/language/en-US/Default.aspx'><span>English</span></a>"
        Else
            LinkChange = "<a href='/tabid/" & Me.PortalSettings.ActiveTab.TabID.ToString() & "/language/fr-CA/Default.aspx'><span>Fran&#231;ais</span></a>"
        End If
    End Sub
</script>

<table border="0" cellspacing="2" cellpadding="0">
                      <tr>
                        <td align="right" valign="top" id="TopLinkPane" runat="server">
                            <%= LinkChange %>                         
                        </td>                                            
                      </tr>
</table>
 
New Post
9/28/2011 7:16 AM
 
you can do this via the language skin object by using showmenu=true and showlinks=false -see http://www.dotnetnuke.com/Resources/Blogs/EntryId/1957/The-Language-SkinObject-explained.aspx

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
9/28/2011 7:34 AM
 
<dnn:LANGUAGE runat="server" id="dnnLANGUAGE"  showMenu="True" showLinks="False" />
This will show the dropdown selection - which doesn't work correctly.

<dnn:LANGUAGE runat="server" id="dnnLANGUAGE"  showMenu="False" showLinks="True" />
This will show the Flags..

We want something that will show the link like this:
English / French
 
New Post
9/28/2011 7:40 AM
 
Check out Apollo MLLAnguageSelector skin object on Codeplex.com

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/28/2011 7:42 AM
 
does this do it?
<dnn:LANGUAGE runat="server" ID="dnnLANGUAGE" ShowLinks="True" ShowMenu="False" ItemTemplate='<a href="[URL]" class="Language" title="[CULTURE:ENGLISHNAME]"><span class="Language[SELECTED]">[CULTURE:ENGLISHNAME]</span></a>

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...Using text Links instead of Flags?  Help!Using text Links instead of Flags? Help!


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