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  |  

Affordable ASP.NET Hosting Service
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
 


  Sponsors  

Meet Our Sponsors

Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
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.
 


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.

 


SteadyRain
Founded in 1999, SteadyRain has extensive experience delivering Internet technology strategies and solutions for a diverse client base, ranging from Fortune 500 firms to successful start-ups.
www.steadyrain.com
AfterImage Internet Consulting and SEO Services
AfterImage provides search engine optimization (SEO), Internet consulting and hosting services for the Windows platform (IIS, ASP, SQL Server).
www.afterimage.nl/
Willhite & Sharron Realtors
Exemplary service for your Seattle Real Estate needs. It's what you deserve from your Realtor®!
www.alkihomes.com

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