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, ...Skin - Host Title/Host URL questionSkin - Host Title/Host URL question
Previous
 
Next
New Post
5/19/2006 9:43 AM
 

DNN 3.2.2. The Host Title with link to the Host URL displays and the link works in a skin I'm testing. The code I'm using to make this happen is <dnn:HostName runat="server" id="dnnHostName" cssclass="OtherTabs" />.

But I can't find a way to make the Host URL open in a new browser window. I tried adding target="_blank" in that line of code but it didn't show up in the code on the page and therefore didn't cause the Host URL open in a new browser window. Is there a way to accomplish this?

 
New Post
5/19/2006 9:56 AM
 
you will need to tweak the code or - preferable - to create you own ExtendedHostname skin object. have a look into the module developement guide for details.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
5/19/2006 10:26 AM
 

 

If you are just doing this for your site, then you don't really need the SkinObject to make the link for you, you could take that out and just put your own link in there with regular HTML.

If you still want the Hostname to be read in dynamically and add that attribute, you can add this code next to the bottom of your skin:

<script language="javascript">
   document.getElementById('dnn_dnnHostName_hypHostName').target='_blank';
</script>

 


DotNetNuke Modules from Snapsis.com
 
New Post
5/19/2006 5:42 PM
 
leupold wrote
you will need to tweak the code or - preferable - to create you own ExtendedHostname skin object. have a look into the module developement guide for details.


Thanks. That's one level above my competance right how. but I will look into it and try to get myself to that level which is where I want to be anyway.
 
New Post
5/19/2006 5:45 PM
 

----------------------
If you still want the Hostname to be read in dynamically and add that attribute, you can add this code next to the bottom of your skin:

<script language="javascript">
   document.getElementById('dnn_dnnHostName_hypHostName').target='_blank';
</script>
----------------------

I put that code into the place where I had the previous code but it didn't display anything. And that code is still there, as inserted, when I looked at "view source" for the displayed page.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Skin - Host Title/Host URL questionSkin - Host Title/Host URL question


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