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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Best Practices - Possibly new forum?Best Practices - Possibly new forum?
Previous
 
Next
New Post
10/16/2009 7:46 PM
 

Hi,

We have just rolled our my first DNN Portal and are working on our second for release in the next couple of months.

During that process i have read a lot about DNN, and purchased a couple of modules.

As we are I.T developers - we like process :-)

I have found that unfortunately the different modules tend to interact with the database differently, thus when i create a module to interact with both of the third party modules data, it is inconsistent. (Naming Conventions, Data Types, Locations etc)

For example the calendar module we purchased, cannot reference the new user details which were created by another purchased module....It can only reference the "core" user details. Now I could purchase the calendar source code, and update the module to draw fields for the new tables, but that would be making things worse. I should purchase the source code from the user details module and centralise its data repositry......Then update the calendar to reference that as well i suppose....

To extend the user details, I really need to know what would be the best place to store additional data, so other modules could accces it as well, hence my interest in best practice. 

Perhpas the User Details module is operating correctly and the issue resides in the calendar module. If so a request could be put to the calendar developer to update their code in line with best practices.... see where i am going...

 

I see from reviewing this forum, there are a few people requesting guidence about Best Practice on specific issues, and i suspect more would appear if there was a forum dedicated to it.

 

To start things off, one of my developers has come to me and asked, when programatically removing a user from a role, is it best to delete the entry or set the role membership to minus 1.  My reply was to do it manually, monitor the result, and then mimic that. Most of the time that would be fine, though when monitoring we may miss something...

It would be best if developers associated with the creation of pieces of core logic, could comment on the best practices put forward by other developers, that way module extensions coud be more consistent and lead to tighter intergration.

I think this product has a great future, and would like to see it reach its potential.

regards

TheTimp

 
New Post
10/21/2009 3:49 AM
 

Wow,

No Responses - really?

Looks like i have it wrong?

regards

TheTimp

 
New Post
10/21/2009 3:55 AM
 

you are not wrong. In our defense: it has been a busy few days, with DNN europe meetings and OpenForce europe, with a lot of active community members participating in those events.. forum responses might have been bit slacking due to this.

Also.. like you say, we are all developers.. we like process, but we dont like documentation. There is a documentation team in place right now, and they are starting to work out what their responsibilities will be. If you are interested in volunteering such documentation team, drop me a mail at erik.vanballegoij@dotnetnuke.com, and we can discuss that a bit more offline.

With respect to your developer's question about programmatically removing users from roles: that should be done by using the api methods. In order to find out how they work, just look at the source of the core module that does the same and see what functions are called

Best practice number one: never hack the database by talking to it directly: you should always use the core api to do that....

 


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

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

 
New Post
10/25/2009 5:59 PM
 

Hi Erik Vb,

Thanks for the reply, i wasnt updet, just couldnt belive i was the only one who thought it was important.

Lets hope this gets on the Documentation Teams hit list, I am too much of a newbie with DNN to assist - see note below!

>you should always use the core api to do that....

Thanks for the tip - didnt even know there was a "core api"...perhaps it should be mentioned in the Module Creation webcasts?

Where would I find documentation about it - do i need to trawl through the source?

regards

TheTimp

 

 
New Post
10/25/2009 6:26 PM
 

<<< just look at the source of the core module that does the same and see what functions are called>>>

Hi Erik,

Thank you, DNN is a great Web apps framework but let me tell you that I have heard the asnwer like that above here many times - you know if you're working with DNN for several years then, I guess, you already "learned by heart" 95% of "tricks"(DNN API calls) needed in everyday custom modules development practice, and to find another 5% of such "tricks" would be a "quick look at the DNN sources" for you, but if you're starting with DNN then that process of "just looking at the source of the core modules" is very time consuming...

Just  wondering why folks who do know how to code the most commong DNN API calls are so rarey posting them here in response on this forum participants requests?

Hope that documentation team you mentioned will also get developed freely available "DNN API Cookbook" that will be recommended reading #1 for evreybody starting DNN custom modules development...

One of the entries for this cookbook could be: "Navigation between multiple view controls within a module" - I'm currently trying to figure out from DNN sources how to do that but I still can't make it working...

Thank you.

--Shamil

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Best Practices - Possibly new forum?Best Practices - Possibly new forum?


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