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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Development:: Multiple pages in the module menuDevelopment:: Multiple pages in the module menu
Previous
 
Next
New Post
8/14/2007 2:46 PM
 

Hi,

I want to have two controls for a new module:

1. Added the following code to the 'View' ascx.vb

Actions.Add(GetNextActionID,"Stage #1", Entities.Modules.Actions.ModuleActionType.EditContent,
 "","", EditUrl(), False, DotNetNuke.Security.SecurityAccessLevel.Edit, True, False)
Actions.Add(GetNextActionID,"Stage #2", Entities.Modules.Actions.ModuleActionType.EditContent,
 "","", EditUrl(), False, DotNetNuke.Security.SecurityAccessLevel.Edit, True, False)

2. added two .ascx files to the project and put a trivial entry in each.

3. added the controls to the module in the Host>Module Definitions for the module.

My entries were Key: Edit
                       Type: Edit
                        Title: Stage #1
and

                        Key: View
                       Type: View
                        Title: Stage #2
....selecting the appropriate .ascx file for each control. 

I can only see the page that has 'Edit' for the key type,[I've switched them over].
Using 'Edit' for both results in an error.[I'm sure this is by design....]
I've tried several other 'keywords' [View, Anonymous etc..]

Nothing seems to work. Problem is - I can never see both!
What am I doing wrong??

 

D.

 
New Post
8/14/2007 3:19 PM
 

CTOsian

leave the key blank for your view. there needs to be one view control with out a key. that control will then be the default view.

 

Nathan Rover

 
New Post
8/15/2007 5:09 AM
 

Thanks Nathan for responding,

Apologies if I didn't explain myself well enough.

Yes, I have a non-key entry for the main page in the module, a 'settings' key for that 'page within a page' functionality and a third key [edit] for my "Stage #1" Page.

All this works.

The particular problem I have [and hence the need for a fourth page [Stage #2] is that on my 'stage#1' page I am using partial rendering [ajax update panel] in which I use the Ajax Popup control extender.  Works very well.

"Stage #2" needs to use the file uploader and Microsoft haven't yet fixed the bug that prevents use of this control under an update panel. I therefore need to produce a separate page without partial rendering in order to use it!

So, I still need to have two pages [plus my settings] in my menu drop-down in the the user module that hosts all this.

 

 
New Post
8/15/2007 5:50 AM
 

FIXED IT!!!!
After reading the documentation at http://www.adefwebserver.com/DotNetNukeHELP/IActionable/ I [finally] realised that the EditUrl() can take a string parameter that should be the same as the key entered in the control definition page for the module.
I changed the foloowing line to include a string:
Actions.Add(GetNextActionID,"Stage #2", Entities.Modules.Actions.ModuleActionType.EditContent,
 "","", EditUrl("AJAX"), False, DotNetNuke.Security.SecurityAccessLevel.Edit, True, False)
 
and added that string [AJAX] as the key.  It all now works.
The attendant realisation s that the default value for this is "Edit" - Which is what the first control key value is!

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Development:: Multiple pages in the module menuDevelopment:: Multiple pages in the module 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