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 ForumsDocumentsDocumentsGetting File Size to show with external links in Documents moduleGetting File Size to show with external links in Documents module
Previous
 
Next
New Post
9/5/2006 5:08 PM
 
I want to specify a size for each remotely linked "document", and there doesn't seem to be a way to manually do this.

I'm using I'm using Documents module to list some WMVs we have for download.  The WMVs live on another (remote) server, so I'm using the external link instead of uploading the files.  The thing is, I still want to indicate the file size, but there seems to be no way to do this.

I propagated the Documents table manually, and I noticed there wasn't even a Size column.  I grabbed the source for 03.01.05 and see that it binds to the columns "FormatSize":

...
   Case DocumentsDisplayColumnInfo.COLUMN_SIZE
                AddDocumentColumn("Size", "FormatSize")

...
    Private Sub AddDocumentColumn(ByVal Title As String, ByVal DataField As String)

So I added the FormatSize column to the table Documents, and filled it with some data like 123273.  I am still getting no Sizes to show up?

I am going to run profiler to see if it's even SELECTING that column, but before I waste too much time on this I wanted to see if anyone else has experienced this or has a fix for me?

Thanks :)

 
New Post
9/5/2006 5:46 PM
 
"Fixed"...

First off, it's not the "FormatSize" column but the "Size" column, LEFT JOIN'd from the FILES table where the size is stored.

Per documentation the filesize only works with local/uploaded files.  I modified the sproc GetDocuments to pull back my new column in Documents table so at least my sizes are showing now.  Unfortunately the  "FormatSize" method is being ever so helpful by dividing my Sizes by 1000 to display them in Kb, so my 200MB movies are showing with a size of "200,000.00" :P

Anyone tell me where this FormatSize method is, so I can Size=Size/1024/1024 ?

Also.. Found out you can change the column titles by changing the values in the /DesktopModules/Documents/Appl_LocalResources/Document.Ascx.Resx file.

Hope this helps someone else, any help on the Format function used on the size would be useful. thx
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsDocumentsDocumentsGetting File Size to show with external links in Documents moduleGetting File Size to show with external links in Documents module


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