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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Where to find module ID?Where to find module ID?
Previous
 
Next
New Post
5/9/2017 11:43 PM
 
I need a module ID # (for 2sxc's "Form and List - Custom Design with Token and Razor - App for DNN (DotNetNuke) and 2sxc" app) and don't know where to find this. Do I need to look in some (which?!) table in the DB or what? I don't see it in the module's settings page. I'm on DNN 9.01.






Thx!
 
New Post
5/10/2017 11:49 AM
 

John,

you can find it in the database by entering this query in Host :: SQL (or Settings :: SQL Console in DNN 9):

SELECT ModuleId FROM {databaseOwner}{objectQualifier}TabModules
WHERE ModuleTitle = '[MyModuleTitle]'

If this brings too much results, you can also reduce the results by adding the TabId (if you know it):

SELECT ModuleId FROM {databaseOwner}{objectQualifier}TabModules
WHERE ModuleTitle = '[MyModuleTitle]'
AND TabID = [xy]

Another way to find it is to go to module settings, right click in the IFrame (popup) and select properties. The Address looks something like
http://www.mysite.com/en-us/Home/ctl/Module/ModuleId/382?ReturnURL=/en-us/&popUp=true

Happy DNNing!
Michael


Michael Tobisch
DNN★MVP
dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
5/10/2017 2:50 PM
 
If you need the Module Id inside of a 2sxc Razor script, it's just @Dnn.Module.ModuleID.

When you are editing the template, there are quite a few helper objects on the right side of the screen. Use the dropdown menu to look through what is available.



Joe Craig
Patapsco Research Group, Ellicott City, MD
DotNetNuke Development and Services (http://patapscorg.com)
 
New Post
5/15/2017 5:19 PM
 
Thanks all, much appreciated!
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Where to find module ID?Where to find module ID?


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.

Content Layout

Subscribe to DNN Digest

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out