CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.dotnetnuke.custom_modules Tags:
Item Type: NewsGroup Date Entered: 5/6/2004 11:12:03 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 15 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
7 Items, 1 Pages 1 |< << Go >> >|
deebee
Asp.Net User
DNN2: Confused about ModuleID / PortalID5/6/2004 11:12:03 AM

1/1

Hi

getting great help from this board (thanks to all) i'm right back wit a new question.

I think it's handled like this:

When a module is added to a portal it gets an unique ModuleID. Imho That means when a Module gets added to different portals I'm fine with use ModuleID in my table for my Portal-specific data.
So there is no real need for the PortalID in my custom modules?


deebee
Asp.Net User
Re: DNN2: Confused about ModuleID / PortalID5/7/2004 6:16:38 AM

0/0

....i'm still not sure about ModuleID / PortalID.

Another assumption:

When i'll use an table on the same host for multiple portals AND multiple modules then have I to include PortalID AND ModuleID in my table?

Can somebody explain the intention of those ID's ?

thanks

dantindall
Asp.Net User
Re: DNN2: Confused about ModuleID / PortalID5/7/2004 11:24:56 AM

0/0

deebee:
I'll give this a shot and trust that if the info I post here is not quite right, someone will correct.

The ModuleID is assigned when a new module is added to your dnn.
The PortalID is assigned when you add a new portal to your dnn.

The relationship between the two is as follows:
Assume you have a module named TestModule and it has been uploaded to dnn and assigned an ID of 323.
Assume you have a portal in dnn (the default one) with a PortalID of 0.

While you are in your portal, you add the TestModule to the "Home" page. What actually gets written into the database are entries that state that on portalID(0) there is a page (TabID 21) that contains the TestModule (ModuleID 323) in the content pane.

This was done to allow multiple portals and multiple instances of modules on multiple pages within the dnn system.
Dan Tindall
deebee
Asp.Net User
Re: DNN2: Confused about ModuleID / PortalID5/10/2004 6:46:12 AM

0/0

Hi Dan

Thanks for your explanation. I'm now closer to the big picture and can go on with my 1st module.
By the way does anybody know when the official DNN2 module development docs are ready?

Greets
mbrandon
Asp.Net User
Re: DNN2: Confused about ModuleID / PortalID5/10/2004 9:21:55 PM

0/0

I would say "It Depends" :)

What you have to think about, is how do you want your module to react to being placed more then once on a tab, more then once in a portal, and in more then one portal.

The level at which it is important you distiguish between them, is the level you want to tie your data to.

ModuleID identifies a unique instance of your module, and in most cases is all you need to identify information about what data belongs with this instance - PortalID/TabID are really used by the framework to identify what content to render.

But lets say that you want every copy in a portal to share data - then it would have to be ID'd by the PortalID.

It would be similar for TabID for each tab.


Don't forget that if you have configuration information about your module to save, there is a handy table called modulesettings that all modules automatically get access to. This is where the image module saves it's information, for example. As well, the links module uses this to save the display option settings - look at the code there for examples of how it is available via the basepage, and how to update it via a function in adminDB.






deebee
Asp.Net User
Re: DNN2: Confused about ModuleID / PortalID5/11/2004 7:41:10 AM

0/0

Thanks . Didn't know about the possibility to save modulespecific things in modulesettings. I can't await the official module dev. documentation ;-)


deebee
Asp.Net User
Re: DNN2: Confused about ModuleID / PortalID5/11/2004 7:43:44 AM

0/0

Thanks mbrandon

So I'll use the moduleID in my module as well.
Didn't know about the possibility to save modulespecific things in modulesettings. I can't await the official module dev. documentation ;-)



7 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
Error While Executing the Data Source - Reports Module [Lead ... When I added "WHERE :ModuleID=:ModuleId AND :PortalID=:PortalID AND ... Still confused as to why those parameters are need since the database that I was ...
The type initializer for DotNetNuke.Modules.Forum.DataProvider ... So I'm confused as to where to look from here. Thanks! ... SetupDefaultGroup( Int32 ModuleId, Int32 PortalId, Int32 UserId, ...
sorting datagrid in dotnetnuke - ASP.NET Forums Also i did not use xml for my datagrid therefore i am confused in this ... GetJobs(ModuleId, PortalId), GetType(JobInfo)) End Function ...
Dynamic Email that contains +8000 characters? > DotNetNuke Module ... DynamicEmailTo, DynamicEmailSubject, ModuleID, PortalID, InActive, ... A bit confused. Having issues with commands working within sql input. ...
5 Exceptions for Breakfast--I don't Understand Any of them, But I ... PortalID: 0 PortalName: TeakwoodMall Portal UserID: -1 UserName: .... just learning to code, and as I get older, I'm more easily confused. ...
NukeFeeds - DNN Forums AssemblyVersion: 04.09.00 PortalID: 0 PortalName: xxxx UserID: 1 .... (Listed Twice on Page) ModuleId: 1286 ModuleDefId: 110 FriendlyName: Add/Edit Post ...
Installation Problem - Smart-Thinker Events - Smart-Thinker ModuleId: 323 ModuleDefId: 21 FriendlyName: File Upload ModuleControlSource: Admin/Files/WebUpload.ascx AssemblyVersion: 04.04.01 PortalID: ...
Forum der Deutschen DotNetNuke Community DNNPortal ModuleId: 354 ModuleDefId: 15 FriendlyName: Benutzerverwaltung ... PortalID: 0 PortalName: Reichel GmbH & CO Kg UserID: 1 UserName: host ActiveTabID: 42 ...




Search This Site:










help needed with customizing psk...

provider for dotnetedit

personal web site starter kit - win2k3 hosting issue

final classifieds-working smoothly

domain name "www.xxx.com" does not exist in the database

ssl, login using forms authentication

why does my site keep recompling?

3.1 possible bug: host settings - online help

dnn & sql express 2005

customizing custom modules

logincontrol textbox and enter key

help please, how do i retrieve modified text information within a text box control

treeview control - performance issue.

outputcache does not work with ascx

possible bug - user w/o edit rights to parent page

child portal problems...

faq: what should i do when i get the answer on my question?

overriding the visible and enable property on custom textbox

drop down list selected value

install against sql server 7

what controls the width of a module?

openning of web site dialog takes about 25-30 sec.

works with one host and not another

vs and sourcesafe and lengthy check-out

sql/stored procedures return help needed

web deployment errors replacing connectionstrings after sp1 installed.

problems with blog module install

scrolling in gridview

content repository like jsr-170 in .net?

[2.0] planning and strategy

 
All Times Are GMT