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 ForumsDocumentsDocumentsdefault settings for column visibilitydefault settings for column visibility
Previous
 
Next
New Post
10/4/2007 12:59 AM
 

I'm trying to modify the documents module so that, by default, when one drops a new instance of that module to a page the default columns that are visible would be title, size, and download link.  I'm pretty sure the right place to look is with the "EditDocumentsSettings.ascx.vb" file, but I can't find where those values get set.   I know I can go into the module after the fact and adjust the visibility of these columns in the module settings on the web page, but that is not what I'm after.  Any help would be greatly appreciated. 

 


http://www.idsconsulting.com Ideas, Design, Success.
 
New Post
10/7/2007 7:51 PM
 

I'm kinda bummed there wasn't much interest with this post.  Not even a comment.  But, I've solved the issue since my original post so I'll share.

First, I upgraded the module to asp.net 2.0.  That was a bear, but eventually worked through all the little gotchas to get it right.  The file to edit is:
"\App_Code\Documents\DocumentsSettingsInfo.vb".

Once you are there see the following lines:

#Region "Private Members"
    Private _LocalResourceFile As String
    Private _ModuleId As Integer
    Private _ShowTitleLink As Boolean = True
    Private _SortOrder As String
        Private _DisplayColumns As String = _
          DocumentsDisplayColumnInfo.COLUMN_TITLE & ";true," & _
          DocumentsDisplayColumnInfo.COLUMN_OWNEDBY & ";false," & _
          DocumentsDisplayColumnInfo.COLUMN_CATEGORY & ";false," & _
          DocumentsDisplayColumnInfo.COLUMN_MODIFIEDDATE & ";true," & _
          DocumentsDisplayColumnInfo.COLUMN_SIZE & ";true," & _
          DocumentsDisplayColumnInfo.COLUMN_DOWNLOADLINK & ";true"

As you can see, I've already edited mine.  For the columns you wish to enable or disable as default just set to "true" (on) or "false" (off).  Make your changes, recompile and you should be golden.

 


http://www.idsconsulting.com Ideas, Design, Success.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsDocumentsDocumentsdefault settings for column visibilitydefault settings for column visibility


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