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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryDirectory Skin - Link Open In New Window?Directory Skin - Link Open In New Window?
Previous
 
Next
New Post
12/21/2005 10:54 PM
 

Does the directory skin have the ability to open a link in a new window?  If not, is this something simple that I can modify in a file somewhere to make it work that way?

Thanks.

P.S.  This module is awesome.  Kudos to all those who worked on it!

 
New Post
12/21/2005 11:26 PM
 
No it doesn't. It may be as simple as adding a setting in the template.xml but I'm not sure. I'll have to look through the source code to see what settings are valid.
 
New Post
1/18/2006 10:09 AM
 

mikeh wrote
No it doesn't. It may be as simple as adding a setting in the template.xml but I'm not sure. I'll have to look through the source code to see what settings are valid.

I'm also looking for a way to open certain (or all) links in a new window -specially when they are xternal links. would you be kind enough to let me know if is possible?

 

Cheers,

 

Ivan

 
New Post
1/18/2006 8:55 PM
 

I have seen this question asked a few times, and i am not sure what it is you are trying to do, but i will offer some solutions.

If you are typing hyperlinks in your summary or descriptions, they open in the same window by default. This is kind of a symptom when using FTB Editor, whether it is in this module, or another module, like the Text/HTML module. You can probably change this default behavior portal wide with a FTB configuration setting, but i cant say for sure as i use FCKEditor. FCKEditor by default adds any hyperlinks i type in to open in a new window.

Regardless of what editor you use, if you view the source while typing text in your editor, you can insert target=blank where your hyperlink is to have it open in a new window. Example, viewing the source for a DNN Hyperlink shows this ...

<A href="http://www.dotnetnuke.com">www.dotnetnuke.com</A>

but adding the target=blank like this will make that link open in a new window, like so ...

<A target=blank href="http://www.dotnetnuke.com">www.dotnetnuke.com</A>

You can use this same syntax in your template.html like this example for the download token, by changing this ...

<td width="22%">[DOWNLOAD]</td>

to this ...

<td width="22%"><A target=blank href="[DOWNLOAD]"></A></td>

In some cases, you might need to remove the " or change the " to a single ' depending on the token you are using.

The templating system can be as basic or as complex as you want by using basic html or even some javascript. Steve has given us some Tokens to use, and we can be pretty creative in using them.

As an example, i took the Nifty Toggle template and modded it a little. I didnt want to use the button in the template, but instead, made the Title clickable to Expand and Contract the View Details / Hide Details and added a Mouse Over to say "Click to view the Full Description" when you hover over the Title. You can see what i mean here ... http://www.fsalliance.net/FileLibrary/Downloads/tabid/61/Default.aspx

Anyways, take a Template, copy it and give it a new name, and experiment a little. You can do quite a bit with the templating system.

Hope that helps you.

Gary



Gary
 
New Post
1/18/2006 9:34 PM
 
Good explaination Gary and something that should work in most cases. I know there was one I was messing with awhile ago in an attempt to help someone that I couldn't get to work but then again I may've used double instead of single quotes.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryDirectory Skin - Link Open In New Window?Directory Skin - Link Open In New Window?


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