RM 1.1 default check - upload resource icon & Does not have a file

reddy ink

Active member
When submitting a resource,
How to change so the form has these checked by default. Which template should I edit?
Extra.css would be great!

Thanks
upload_2014-11-28_11-49-57.webp

upload_2014-11-28_11-51-7.webp
 

Attachments

  • upload_2014-11-28_11-49-5.webp
    upload_2014-11-28_11-49-5.webp
    4.3 KB · Views: 1
You will need to edit the resource_add template.

For the first one though, why don't you disallow uploaded files?

For the icon:
Rich (BB code):
<label><input type="checkbox" name="edit_icon" value="1" checked="checked" /> {xen:phrase upload_resource_icon}</label>
 
Thank you for the reply. I am not able to figure out what need to be changed in the template to default check - upload resource icon and "Does not have a file" options.
 
Thank a lot @Brogan

1) I still want to upload files but only <5% resources have files and the reason I would like to have "Does not have a file" auto checked.


You will need to edit the resource_add template.

For the first one though, why don't you disallow uploaded files?

For the icon:
Rich (BB code):
<label><input type="checkbox" name="edit_icon" value="1" checked="checked" /> {xen:phrase upload_resource_icon}</label>
 
Change this:
Rich (BB code):
<li><label><input type="radio" name="resource_file_type" value="fileless" {xen:checked '{$resourceType} == "fileless"'} /> {xen:phrase does_not_have_file}</label>

To this:
Rich (BB code):
<li><label><input type="radio" name="resource_file_type" value="fileless" checked="checked" /> {xen:phrase does_not_have_file}</label>
 
Top Bottom