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

HomeHomeDevelopment and...Development and...Open Core Testi...Open Core Testi...Launching a popup from MENU Launching a popup from MENU
Previous
 
Next
New Post
7/12/2011 12:30 AM
 
Given that the popup system is actually capable of rendering a full page not just a single module,
The question has come up that we should be able to launch a popup from a menu.

Here is the scenario:

We have a custom rego module for our users that lives on its own page and is a tab on the main menu.

If the user hits the REGO button on the SKIN they get the fancy POPUP REGO.
BUT if they hit the REGO menu link they get the boring INLINE REGO.

Seems what we really need is a way to nominate a TAB as being a POPUP.
And have the MENU and other NAV tools render a popup url link accordingly.

Can anyone suggest a way for us to get this functionality happening now.

Westa

 
New Post
7/12/2011 5:46 PM
 

Hi Wes,

Unfortunately with the current API there is no simple way to do this.  This is not something we've implemented for the upcoming 6.0 release.  Definately a possibility for a future release.

That being said.... there are ways to do it, nothing as simple as just calling a function and passing the URL though.

There are several things to consider, what type of control are you dealing with, a hyperlink? a commandButton? an actionButton?  The way to call the popup will depend on the type of control you are using.

    For example: A HyperLink
    - you have to add an onclick attribute to the hyperlink which in turns calls a Javascript method to manage the popup
            [C#]  myHyperLink.Attributes.Add("onclick", "return " + UrlUtils.PopUpUrl( urlToPopUp, .... etc)


Have a peek into the UrlUtils class to figure out the rest of the parameters for the PopUpUrl generation.

Hope that makes sense!

-- vince.

 
New Post
7/13/2011 2:04 AM
 
The main place I'm actually thinking of it currently is on the MENU system.  Seems like this is one area where it could be of some use and not difficult to implement.

Basically - what I'm suggesting - is a modification to the DNN menu so that it can launch a popup
 - and a new setting on the TAB that says OPEN as POPUP.

Guess what I'm looking at is some way to get consistence with Opening Login and Rego pages at the moment.

A number of our sites have the Registration page listed as part of the MENU system in some way shape or form.

So right now we would get two different end user experiences - if they select REGO from an option on the menu it goes to new page.
If they select REGO from the rego skin object it fires a popup - this is not a good look in terms of end user experience.

Westa


 
New Post
7/13/2011 2:17 PM
 
Hi Wes,

With the current implementation, the scenario you've described is currently not possible. I've logged this in Gemini as an Enhancement for a future release.

Gemini link: http://support.dotnetnuke.com/issue/ViewIssue.aspx?id=17163&PROJID=2

-- vince.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Open Core Testi...Open Core Testi...Launching a popup from MENU Launching a popup from MENU


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