Please verify this (sample) upload form
Posted: 05 November 2009 09:13 AM   Ignore ]  
Newbie
Rank
Total Posts:  7
Joined  2009-10-20

I use the sample upload form from the docs (left out ‘entry_id=”{entry_id}”, as this results in the error mentioned in my other post) and I added the submit button.

Could you please check the form and tell me what is wrong.

It gives an error “Ensure all required fields are filled in”
It doesn’t show the comment textarea (see image).

Here’s my code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html >
<
head>

{exp:resources:headers load_jquery="yes" load_jquery_form="yes"}  
</head>
<
body>


{exp:resources:resource_form  weblog="myweblog" ajax="yes" return="mytemplate"}

<p>Title<br />
<
input type="text" name="title" id="title" value="{title}" size="50" maxlength="100"></p>

<
p>URL Title<br />
<
input type="text" name="url_title" id='url_title' value="{url_title}" maxlength="75" size="50" /></p>
<
p>{resource_groups}
    
<label>{field_label}</label>
    <
select name="{field_name}">
    
{options}
    
<option value="{option_value}"{option_select}>{option_name}</option>
    
{/options}
    
</select>
{/resource_groups}
</p>
<
p>
{resource_type}
    
<label>{field_label}</label>
    <
select name="{field_name}">
        
{options}
        
<option value="{option_value}"{option_selected}>{option_name}</option>
        
{/options}
    
</select>
{/resource_type}
</p>
<
p>
{resource_userfile}
    
<label>{field_label}</label>
        <
input type="file" name="{field_name}" value="" />
{/resource_userfile}
</p>

<
p>
{resource_comment}
    
<label>{field_name}</label>
     
{options}
    
<textarea id="{field_name}" name="{field_name}" dir="{text_direction}" cols="50" rows="{rows}">{field_data}</textarea>
     
{/options}
{
/resource_comment}
</p>

    <
input type="submit" name="submit" value="Speichern" id="submit" /><br />
{/exp:resources:resource_form}

</body>
</
html

your help is appreciated.


Werner

Image Attachments  resources_upload_form.gif
Profile
 
Posted: 16 November 2009 11:00 AM   Ignore ]   [ # 1 ]  
Newbie
Rank
Total Posts:  7
Joined  2009-10-20

Thank you Michael

It’s a week ago you announced by mail the new version of the module which addressed some of the issues reported here. And you also updated the docs. Wonderful.

But I also reported to you in a email that the new version has an error in the return parameter. After sending the upload form we don’t get redirected to the template specified in return=

I even asked you disparately a second time the last week by mail to help us and fix your fantastic module. It is critical for us because we promised to our client to have the project finished some days ago. Now we can not finish it because of a little error in one of your products.

Please help us to get a working module. Or if it is us doing something stupid, please let us know too.


Werner Gusset

Profile
 
   
 
 

Join our Mailing List