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, ...Localize content and link in skinLocalize content and link in skin
Previous
 
Next
New Post
1/15/2013 1:18 PM
 
Hello,

It tooks me some time to reproduce, but I tried both. THANKS a lot to both of you, that's very kind.
Here are the results.

1/ Timo suggestion does not work in my case, because as Armand said, I do not have a URL+text only, but a URL for an image. I tried to put the whole
http://domain.com" target="_blank">Twitter in resource, but it does not work...

2/ Therefore, I investigated Armand method. It does not fully work, I still have the following result:
http://domain.com + image (with the correct link)

I do not manage to remove the URL before the image...
Probably a very simple trick in the jquery code, I tried to search on the net, but I get lost...
Armand, if you are somewhere here and can have a look, I would be more than happy.

DV FX
 
New Post
1/15/2013 2:00 PM
 

Ok, the path to the image could be an issue with the TEXT skin object.(would have to supply the full path)

But when you only want to use 2 languages this would work too:

Inject this in you skin (ascx file):

<% If CultureInfo.CurrentUICulture.Name.ToString.ToLower = "en-us" then %>
<a href="#"><img src="<%=SkinPath%>English.png" alt="English" /></a>
<%Else %>
<a href="#"><img src="<%=SkinPath%>French.png" alt="French" /></a>
<%End If%>

 

You would have to change the language code (en-ca)Thelinks (#) and the image paths.HTH

 
New Post
1/15/2013 4:13 PM
 

Hi

well its not that hard. as you see you give the element a class

 CssClass="hiddenlink"  or any other name

and then below the other jquery call you simple do this

jQuery(".hiddenlink").remove();

 
New Post
1/15/2013 4:48 PM
 

Hello Timo,

Can you please copy-paste the code again please ? Seems that there were a problem with it.
I will try your solution. My problem is not the PATH, but the URL (the path of the image is the same, it's the link which is different).

Hello Armand,

That's not difficult for you... ;-) I am a simple novice amateur who is doing a simple website (see here the previous one that I am trying to do better: http://declic-video-fx.com )
I will try your solution. I am wondering which solution is the best = which one consume the less ressource, as it is in the skin and it will be called very frequently. Do you have an idea ??? In addition, I don't have just one object like that, but 3 images with 3 links.

With the class hiddenlink, I need to add something in my CSS I guess? How do I do to "hide it" ? Same color than background ?
And what if I change background ? In addition, it might create problems with the CSS which is near (all my logos are moved due to the text).

Thanks for your opinion, help and so on.

 
New Post
1/15/2013 5:33 PM
 
The Editor mi-interpreted the links.I corrected the post now..Here's the code again:

<% If CultureInfo.CurrentUICulture.Name.ToString.ToLower = "en-us" then %> <a href="#"><img src="<%=SkinPath%>English.png" alt="English" /></a> <%Else %> <a href="#"><img src="<%=SkinPath%>French.png" alt="French" /></a> <%End If%>

I don't think either of the solutions is more efficient then the other.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Localize content and link in skinLocalize content and link in skin


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