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 ForumsLinksLinksEditing LinkClick.aspxEditing LinkClick.aspx
Previous
 
Next
New Post
12/19/2008 12:09 PM
 

I have a question about LinkClick.aspx.  I would like to send any user who clicks on an external link to a Warning Dialog before redirecting them to their link.  I.e. something along the lines of "This page is a link to an external website.  My web page is not responsible for the content on this page."  Is there any way to edit LinkClick.aspx to add this functionality?  I realize that my other options would be to edit the Links Module to provide a separate page that adds that functionality, but I thought it might be easier to change LinkClick.aspx - but it seems like that file doesn't actually exist, so I wasn't sure where to put that code.  Thanks.

 
New Post
2/3/2009 1:49 PM
 

Does anybody have an answer to this? I have the same problem.

Thanks

 
New Post
2/5/2009 11:35 AM
 

I also need to make the changes the way Linkclick.aspx works. Does anybody have some idea?

Thanks!

 
New Post
2/5/2009 1:04 PM
 

Requests for LinkClick.aspx are handled in the DotNetNuke.Services.FileSystem.FileServerHandler class, which resides in the core assembly DotNetNuke.dll.  I strongly discourage making any modifications to this class (and, apropos, implementing the modification you describe herein would be difficult anyway).  

I suggest seeing if you can't include custom javascript in the link itself (I believe this is currently possible but not supported) that accomplishes the end you desire.  You might also consider some custom jQuery logic -- this would also seem like an excellent fit.  You could deploy the jQuery code either within the link itself, or as a separate block of code residing in a Text/HTML module.

Hope this gets you started!

Brandon


Brandon Haynes
BrandonHaynes.org
 
New Post
2/5/2009 1:07 PM
 

I thought I'd also add that it would be reasonable to implement a custom httpHandler that accomplishes the functionality you desire, and then hand control back to existing FileServerHandler functionality when the requirements are met.  Note that this would be a moderately difficult development task, and I would only advise a reasonably sophisticated developer to follow this path.  You may also experience issues with full postbacks here.

Brandon


Brandon Haynes
BrandonHaynes.org
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsLinksLinksEditing LinkClick.aspxEditing LinkClick.aspx


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