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
7/1/2012 9:34 AM
 

sorry, the jquery code no copy,

 

the code is:

< script type = "t ext/javascript ">

$ ( document). ready( function( ) { var texto = $ (' span[ class= Language]').html();

switch ( texto ) {

case 'es':

$( 'span[class=Language]'). html('Espa&ntilde;ol')

break    ;

case 'en':

$(

'span[class=Language]').html('English')

break;

}

 

});

</

 

script>

 
New Post
7/1/2012 9:35 AM
 
juan Pablo wrote:
Hi Mathias,

Thank you very much, the code show the flag language selection more one list, but I want only links, for example=> English | Spanish | Portuguese.

I found a solution using dnn control, but is impractical in code, but generous in result.

Solution:

Code in my skin:



skin.css:

.language-object .Language.selected {display:none;}



JQuery language:

And I needed to implement jquery code, because the native name or name print the language and the country. Spanish (Spain), and i don´t like this.



 <dnn:LANGUAGE runat="server" ID="dnnLANGUAGE" ShowLinks="True" ShowMenu="False" ItemTemplate='<a href="[URL]" class="Language" title=" [CULTURE:TWOLETTERISOCODE]"><span class="Language">[CULTURE:TWOLETTERISOCODE]</span></a>'/>

 
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