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.0Tab Edit???Tab Edit???
Previous
 
Next
New Post
7/7/2006 5:34 PM
 
Does anyone know how to check if a tab is in edit mode. I have to run some code on and I want it to run only when he tab is being veiwed and not edited!

Get your free DotNetNuke Modules Here
 
New Post
7/7/2006 5:44 PM
 

uhm... afaik you can only edit modules, not tabs.... How you define that is completely up to you. You can set what keys are used to view and edit your module in module definitions. In essence: you use one control to view contents, and another to edit contents.

can you clarify what you mean ?


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
7/7/2006 6:32 PM
 
I am sorry let me clarify. I need to know if any module on the page is in edit mode and I need to know this on a page level. Currently I decided to use it this way

If p.Request("ctl") Is Nothing Then
    ' do my thing
end if

It seems to me that this my not be the best way to find out if the page is in any other state other than normal viewing but it is the best I've come up with so far.


Get your free DotNetNuke Modules Here
 
New Post
7/7/2006 8:34 PM
 

info@bigbytetech.ca wrote
I am sorry let me clarify. I need to know if any module on the page is in edit mode and I need to know this on a page level. Currently I decided to use it this way

If p.Request("ctl") Is Nothing Then
    ' do my thing
end if

It seems to me that this my not be the best way to find out if the page is in any other state other than normal viewing but it is the best I've come up with so far.

NavigateURL can pass Ctl in the querystring for View pages. This is not a good idea to use this to determine if the page is in edit mode or not!!

With that being said, I would look at this.PortalSettings.ActiveTab.AdministratorRoles and determine if the user is in that role.

HTH's,

Dave

 
New Post
7/7/2006 8:39 PM
 

From what your looking to do you may have to walk the page model .IsEditable or maybe module permissions as well. Out of curiosity what are you trying to do?

Dave

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Tab Edit???Tab Edit???


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