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, ...Add a pop up modal link in skinAdd a pop up modal link in skin
Previous
 
Next
New Post
7/6/2012 11:32 AM
 
Hi - is there a way to utilize the DNN modal popups in 6.0.. either from a skin link or a link added to an html area..

I'd like to have a link that uses the modal box to display an web page?  Can I do that?

Thank,
Jay

 
New Post
7/6/2012 1:21 PM
 
You can do use the dnnModal.show method in Javascript. I'm working on a blog post that talks about the options for this, but the syntax would be 


<a href=” dnnModal.show(‘http://localhost/dotnetnuke?popUp=true’,false,550,950,false)”>Link Here</a>



Where the numbers are the height and width of the modal window. false tells the window not to refresh the page once it is closed.


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
7/6/2012 1:26 PM
 

Great.. thanks, Chris.. that's what I was looking for... simple and straight forward and supported by DNN installs.. thanks alot.

 Jay

 
New Post
7/9/2012 9:23 PM
 
Hi guys,

The code above didn't work for me (the quotations were strange characters and there is a missing onclick), I modified it to this:

a href="#" onclick="dnnModal.show('http://yoururl.com/page.aspx?querystringvalues=vars&popUp=true',false,550,950,false)"

< and > intentionally left out

However, I have a problem getting this modal to be in the center of the screen. It keeps showing up below the fold and I have to position it using the titlebar. Is there any value that can be passed in the onclick event to control the position?
 
New Post
7/10/2012 9:05 AM
 

I'm able to get the pop up to fire, but am  unsuccessful in getting a page to load in the window.

Code:

<a onclick="dnnModal.show('http://www.Google.com?popUp=true',true,600,950,false,'')">Link</a>

If I put a href in the hyperlink I either get an error or it takes me directly to the hyperlinked URL.

What am I missing?

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Add a pop up modal link in skinAdd a pop up modal 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