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.0Module calls Edit control when ViewedModule calls Edit control when Viewed
Previous
 
Next
New Post
7/28/2008 10:50 PM
 

I've created a test module (my first) using the standard DNN Starter Kit template.

There isn't really anything in the module yet and I've added the View and Edit controls.  Here is a snippet from my .dnn file.

          <controls>
            <control>
              <src>DesktopModules/DMBSample/ViewDMBSample.ascx</src>
              <type>View</type>
              <helpurl></helpurl>
            </control>
            <control>
              <key>Edit</key>
              <title>Edit Content</title>
              <src>DesktopModules/DMBSample/EditDMBSample.ascx</src>
              <type>Edit</type>
              <helpurl></helpurl>
            </control>
            <control>
              <key>Settings</key>
              <title>DMBSample Settings</title>
              <src>DesktopModules/DMBSample/Settings.ascx</src>
              <type>Edit</type>
              <helpurl></helpurl>
            </control>
          </controls>

If I put this module on a page the edit mode works fine when I'm logged in as Admin.  However, if I'm not logged in and just hitting the portal anonymously the module always comes up in edit mode.  I put a breakpoint on the Page_Load for the view control and it never hits it.  However, it does hit a similar breakpoint on the edit control page when I'm not logged in and trying to view.

I'm using DNN 4.8.4.

A final question - I'm not sure what control type to set the Settings page to - edit, admin, something else?  Currently I have it set to edit and the settings seem to display and work correctly.

 

Thanks for any help,

BK

 

 
New Post
7/29/2008 10:51 AM
 

BK,

It looks like you have everything set up properly in your manifest file. *edit* the Settings control is fine using the "Edit" type

What kind of permissions do you have set on the page and module level? Can you verify that what you have in your manifest file is what DNN has under the module definition (perhaps it was manually changed)?

Take care,

Ian


Software Engineer
Co-Founder, dnnGallery
Stack Overflow: Ian Robinson
Twitter: @irobinson
Linked In: Ian Robinson
 
New Post
7/29/2008 11:12 PM
 

Ian -

Yes, the module definition is in sync with the manifest.  The page permissions are:

All users can view

Admins can edit

The module inherits its permissions from the page so they should be the same.

The module development template places a <dnn:texteditor> on the edit control but not on the view control.  When I hit the page with the module on it (as an anonymous user) the text editor comes up.  Very strange.

 

Thanks for your help,

BK

 
New Post
7/30/2008 11:31 AM
 

Can you check the Module Definitions page to make sure it is configured as you would expect it to be? Your manifest may be correct, but perhaps for some reason the definition isn't?


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/30/2008 3:00 PM
 

Wow, is today Monday? It sure looks like I made a "Monday" post with my previous reply, apologies.


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
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Module calls Edit control when ViewedModule calls Edit control when Viewed


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