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.0Optional Interfaces only available in Edit ModeOptional Interfaces only available in Edit Mode
Previous
 
Next
New Post
7/11/2008 10:02 AM
 

 

 

I have a custom module that runs fine on my development server. But on my production server, the optional interfaces are only visible when I'm logged in and the Control Panel is in Edit mode. In View mode (and for anonymous users) the optional interfaces disappear and my code won't run, either (it does in Edit mode). Folder permissions seem OK since other modules on the page function correctly. Optional interfaces are pretty straightforward, too:

 

#Region "Optional Interfaces"

 
        Public ReadOnly Property ModuleActions() As Entities.Modules.Actions.ModuleActionCollection Implements Entities.Modules.IActionable.ModuleActions
            Get
                Dim Actions As New Entities.Modules.Actions.ModuleActionCollection
                Actions.Add(GetNextActionID, Localization.GetString(Entities.Modules.Actions.ModuleActionType.AddContent, LocalResourceFile), Entities.Modules.Actions.ModuleActionType.AddContent, "", "", EditUrl(), False, Security.SecurityAccessLevel.Edit, True, False)
                Actions.Add(GetNextActionID, Localization.GetString("ViewMonth", LocalResourceFile), Entities.Modules.Actions.ModuleActionType.AddContent, "", "..\DesktopModules\Assignments\SmallCalendar.gif", NavigateURL(TabId, "ViewMonth", "mid", ModuleId.ToString()), False, SecurityAccessLevel.Anonymous, True, False)
                Return Actions
            End Get
        End Property
 

#End Region

What am I missing!!??

 
New Post
7/11/2008 2:41 PM
 

There's more:

The optional interfaces are invisible only on page_load. If another control within the module is called (with the module id in the URL), the interfaces become visible. The interfaces are visible on the default control as well when it's called with the module id. BUT, even though the default control DOES show the Print icon on page_load, once other controls are called the Print icon becomes invisible! Go figure...

 
New Post
7/14/2008 11:52 AM
 

In case anyone is interested in a solution:

There's a paragraph in the Module Development pdf that states:

In the Module definition, you must set the

Default Cache Time to 0 (and click the Update Cache Properties button to set it). Otherwise your links may not work properly because of module caching. 

Apparently the same advice applies to iActionable items. Unless the cache time is set to 0, the iActionable item will not show up in the control.

VERY IMPORTANT

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Optional Interfaces only available in Edit ModeOptional Interfaces only available in Edit Mode


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