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.0SettingName size limitation issueSettingName size limitation issue
Previous
 
Next
New Post
3/17/2007 10:32 AM
 
 

Hi all,

I have just noticed that the SettingName column of the TabModuleSettings table has a size limitation of 50.

I need to store a bunch of settings for my module (could be hundreds basically) and I need to use setting names longer than 50 to make a difference between those. Any workaround to this 50 limitation ?

I'm currently thinking of using GUIDs for those setting names. I know that this will break the usage of the built-in DNN language editor to edit those settings. But what if I include for my modude a settings editor that will let people edit and translate those settings? Will the GUIDs solution be acceptable then?

Thanks for your advises folks,

Pascal Belaud

Microsoft

http://www.olymars.net

 
New Post
3/19/2007 3:24 AM
 
I would think that using GUID's would make it very difficult to maintian your code.  Surely with 50 characters you could come up with a naming convention for you settings.  Also Im not sure laoding 100's of settings for a single module is really the best way to go about it.  With that many settings maybe you should look at a template or some other way:)

Philip Beadle - Employee
 
New Post
3/19/2007 9:04 AM
 

For performance reasons, I would suggest keeping SettingName values relatively short and each module's entries in the ModuleSettings or TabModuleSettings tables relatively few in number. With that many settings specific to your module, I would suggest defining your own module ConfigurationInfo class, configuration table (s), and the needed stored proceedures for updating and accessing them.  This also makes it much easier to access module settings when needed in your sql stored proceedures.

If the settings are primarily related to customization of the module's layout, then look into using a templated design with tokens for field values, etc.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
3/19/2007 7:18 PM
 
Well strictly speaking, I'm using enums in my code and then I have a function that translate on the fly those enums into GUIDs. This is what I have done this week-end and it seems to work pretty well.
 
New Post
3/19/2007 7:21 PM
 

Thanks for your answer. I have a question though: how using my own tables (over the TabModuleSettings table itself) to store those settings increases the performance ?

As far as "templated design" is concerned, do you have any pointer on a tutorial?

Thanks

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0SettingName size limitation issueSettingName size limitation issue


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