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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsDocumentsDocumentsChanging text size of category fieldChanging text size of category field
Previous
 
Next
New Post
3/8/2012 10:57 AM
 

Hello,

 I'am using the documents module but since DNN just have some fixed categories (Title, proprietary, description, date modified, size, category, etc) I'm using 3 of them, title, description and category.

The problem is that I want to put more information in the field category  that in the code just acceptrs 50 characters. I changed the EditDocs.asx and also the database table to increase this field to 250 characters.

When editing this field, now is possible to put more information, but when I click so save, the information is not being transfered to the database. I didnt find the part of the code that managed this, can someone help me?

 
New Post
3/8/2012 12:20 PM
 

You would also have to increase the length of the @Category parameter in the two database stored procedures AddDocument and UpdateDocument. It is currently set as nvarchar(50).

Keep in mind, however, that if you have enabled use of Category List in the module's settings, the definition of the Category text and value is defined in the Host --> Lists table which has a limit of 100 and 150 characters respectively.


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/8/2012 12:47 PM
 

Hello Bill,

 Can you tell me where is these two procedures? I'm looking inside a lot of files but i'm not finding anything related to this.

 
New Post
3/8/2012 12:55 PM
 
Inside the files 03.01.01.SqlDataProvider and 03.01.00.SqlDataProvider I already changed this part of the code below. They're inside DesktopModules\Documents\Providers\DataProviders\SqlDataProvider

CREATE PROCEDURE {databaseOwner}{objectQualifier}UpdateDocument

@ItemId INT,
@Title nvarchar(150),
@URL nvarchar(250),
@UserId INT,
@Category nvarchar(250),
@OwnedByUserID INT,
@SortOrderIndex INT,
@Description nvarchar(255)

 
New Post
3/9/2012 3:54 AM
 
Hello Bill,

Now I undertood what you're talking about, I was thinking in changing inside the code not in the database.
I changed and it worked.

Thanks a lot,
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsDocumentsDocumentsChanging text size of category fieldChanging text size of category field


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