Products

Solutions

Resources

Partners

Community

About

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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Publishing files, .pdf, .docxPublishing files, .pdf, .docx
Previous
 
Next
New Post
9/24/2017 10:48 PM
 
We are looking into using DNN. One of our concerns is allowing internal users to publish content as .pdf, or .doc.

We would like to allow an internal user to upload a .pdf and specify that the .pdf is for year 2017. Once uploaded, without any developer or designer intervening, a link to the document should appear on the 2017 page. The website visitor should also be able to view publications from the 2016 year, as they would all be listed on the 2016 page.

Is there anyway we can assign metadata to an upload, and then filter that metadata in a module on a page?
 
New Post
9/25/2017 3:11 PM
 

 

I think you can do something like that using our Evotiva DNNUserFiles. https://www.evotiva.com/Products/DNN-... 

Use its "Root Folder Pattern" setting to include a token for the year (and anything else you may want to include). Just the year would be [DateTime:Now|yyyy]

This will result at run-time the actual folder the user see (and where upload are made) to be for example : <themainselectedrootfolder>/2017.

If the folder is new, it will automatically created, and the user will be granted 'write' (i.e. upload) permission automatically.

Notice the  "Root Folder Pattern" can include anything (fixed or dynamic - more tokens). For example "Root Folder Pattern" set as "thedocs/[User:UserName]/[DateTime:Now|yyyy]" will result at run-time being something like <themainselectedrootfolder>/thedocs/<theusername>/<theyear>

Then in other pages you can make the root explicitly <the main selected root folder>/YYYY or just the root <the main selected root folder> and users will see each year sub-folder. or, you can configure the module to honor query string parameters, for the root folder, etc. (e.g. other module or simple html can link to the page where the module is including a query string parameters pointing to a given folder or anything, because the   "Root Folder Pattern" setting can include tokens referring to any querystring parameter ([UserFiles:QueryString|something]). More about tokens here

Which folder users can is is managed in the standard DNN Folder permissions, as well as who is allowed to upload, etc.

It needs some polishing, but the basic idea is there.

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Publishing files, .pdf, .docxPublishing files, .pdf, .docx


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