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...Adding links to skins for two localizationAdding links to skins for two localization
Previous
 
Next
New Post
9/13/2010 4:16 PM
 
I am building a french\english site in dnn. I am using one set of skins that have labels that establish their variants from a resource file. So I have a label that is actually a link to external sites. How do I make that link localized. How can that link from the skin go to two different sites. Below is an example of the code,

<a href="http://blog.alcero.com" title="Blog" class="blog"><asp:Label id="lblPrimeBlog" resourcekey="PrimeBlog" runat="server">Blog</asp:Label></a>

The text is able to change from the resource file once the french localization is selected, how can I do the same for the a href? Can I use the resource file with other means of coding to get that going? Thank you
 
New Post
9/13/2010 5:28 PM
 
Ideally you would use a custom skin object for the link

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/13/2010 6:33 PM
 
What is a custom skin object for the link, and where and how can I use it?
 
New Post
9/13/2010 6:57 PM
 
It's not a very pretty solution, but to get out of a spot, you could patch it with a little jQuery:-

<a href="http://blog.alcero.com" title="Blog" class="blog">
<span lang="fr-FR">Blog FR</span>
<span lang="en-US">Blog EN</span>
</a>

$('a.blog span[lang="'+$('html').attr('lang')+'"]').show('medium');
 
New Post
9/14/2010 4:36 AM
 
Franco Bao wrote:
What is a custom skin object for the link, and where and how can I use it?

 A skin object is a piece of code like a small module, but in fact a control to be used in a skin, like [LANGUAGE], [MENU] etc. It is created and packaged like a module, in DNN 5 it can be bundled within your Skin package.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...Adding links to skins for two localizationAdding links to skins for two localization


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