Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Repository Modu...  template & behavior of the repository module?
Previous Previous
 
Next Next
New Post 4/15/2008 12:32 PM
User is offline Eric Peng
357 posts
sina101.com
8th Ranked




template & behavior of the repository module? 

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 4:59 AM
User is offline Steve Fabian
1375 posts
6th Ranked








Re: template & behavior of the repository module? 

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.


Steve Fabian
Gooddogs.com
Sit, Stay, Code ... Good boy!
 
New Post 5/9/2008 2:02 PM
User is offline Mike Riley
206 posts
9th Ranked


Re: template & behavior of the repository module? 

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 6:16 AM
User is offline Steve Fabian
1375 posts
6th Ranked








Re: template & behavior of the repository module? 

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>

Steve Fabian
Gooddogs.com
Sit, Stay, Code ... Good boy!
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Repository Modu...  template & behavior of the repository module?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Swirlhost Inc.
Affordable DotNetNuke Hosting, Skin Development, Custom Module Development, and DotNetNuke Consulting. We will install your preference of DNN and now host with us and get a free license for the Swirl AJAX Chatroom Module.
www.swirlhost.com
Active Modules, Inc.
Creators of Active Forums, the best forum module for DotNetNuke
www.activemodules.com
DNNCovered.com - Your Offshore Dotnetnuke Partner
Dnncovered.com is the only Dotnetnuke offshore outsourcing center specializes in DNN skinning and module development with lowest pricing and quality service. Our staff is dedicated to websites based on DNN and our graphic designers are creative and imaginative well enough to provide customers the complete set of skinning solutions and packages
www.dnncovered.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP