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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Profile Property with spaces in them?Profile Property with spaces in them?
Previous
 
Next
New Post
2/6/2009 8:29 AM
 

Hi
I recently upgraded my DNN site from 3.3.7 to 4.9.1. Unfortunately during the upgrade process, all my custom profile properties which had spaces " " in the text were replaced by underscores "_". I did go into the ProfilePropertyDefinition table and replace the field containing "_" with " " and with those that are look ups into the Lists table, I made sure that the Listname in that table matched the Profile Property. The trouble is that in the User Profile page now, the properties with " " in them have been replaced with "_" on the page (not the database) and as a result, those that are lookups do not have any items in the Dropdownlist.

Why does DNN 4 not allow " " in the Profile Property like DNN 3 did, and is there any way to change it so that I can use " "?

Thanks

 
New Post
2/6/2009 8:53 AM
 

That change to the profile table was made sometime in the past (I want to say 4.6.2 or thereabouts).  I remember when I first upgraded to the version where that change was made and saw all sorts of code stop working (or rather, just not pull the data I was after).  It sucked (I had written several pretty comprehensive modules that relied on some hidden profile properites). 

At any rate, I believe that you cannot change that behavior at this point and unfortunately will have to change your modules that reference the profile properties with spaces to pull them with an underscore.  On that note, ProfileProperties now have the ability to be "Localized" so you could effectively still display them with spaces in their names but behind the scenes they will have an underscore where you had spaces.  You go into the same spot you defined them to set up the localization text.

I think the motivating factor to move to underscores instead of spaces was to ensure "compatibilty".  It is considered by some circles that having spaces in a database key to be bad practice.  The profile properties use an autogenerated INT as their key but all the lookups are done against the name (so it can be considered a key). 


-- Jon Seeley
DotNetNuke Modules
Custom DotNetNuke and .NET Development
http://www.seeleyware.com
 
New Post
2/10/2009 2:33 PM
 

I created the localised text and linked my module to the resource file, and then recoded my module to pick up the text from the resource file.

Thanks

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Profile Property with spaces in them?Profile Property with spaces in them?


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