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 ForumsRepositoryRepositorytemplate & behavior of the repository module?template & behavior of the repository module?
Previous
 
Next
New Post
4/15/2008 3:32 PM
 

generally, the file upload section of the upload page require a user to put a file before submit data.

But I found resource directory template just need user to input a url.

Is anybody know which setting will make the behavior change of the repository module? Because I want to mix some template to create a new template and just want user to input url only. Does anyone know how to do it?

Thank you~~~

 
New Post
4/19/2008 7:59 AM
 

I would suggest downloading and reading the Repository Admin and User's Guide. It explains the the templating process. You can download in on the project's download page in the 'other downloads' section. Basically the functionality of the template is defined by which tokens you include. If you include a [FILE] token and settings it's 'required' setting to 'true' then you will force people to upload a file. setting the 'required' setting to 'false' and you make the upload optional, removing the [FILE] token completely and you have a template which does not allow uploads at all.

 
New Post
5/9/2008 5:02 PM
 

Steve,

I actually have the exact same question, which I've posted in another thread.

In the default templates (XML and HTML files), there are no Required, True settings for any tokens.  How does the module know which fields are required and which are optional?  What would be the correct syntax (in the XML) to make a [FILE] optional?

 
New Post
5/10/2008 9:16 AM
 

By default, all of the input fields are required

TITLE 
FILE 
URL 
AUTHORNAME 
AUTHOREMAIL 
SUMMARY 
DESCRIPTION 

You can override this by placing a setting named "Required" in the Form.xml file and setting its' value to "false". For example, to make the uploading of a file optional, open the FORM.XML file and add the setting to the [FILE] token as follows...

 <Object>
  <Token>[FILE]</Token>
  <Settings>
   <Setting>
    <Name>Required</Name>
    <Value>false</Value>
   </Setting>
  </Settings>
 </Object>
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositorytemplate & behavior of the repository module?template & behavior of the repository 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