1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Resource Manager Support' started by reddy ink, Nov 28, 2014.

  1. reddy ink

    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.png

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

    Attached Files:

  2. Brogan

    Brogan XenForo Moderator Staff Member

    You will need to edit the resource_add template.

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

    For the icon:
    Code:
    <label><input type="checkbox" name="edit_icon" value="1" checked="checked" /> {xen:phrase upload_resource_icon}</label>
     
    reddy ink likes this.
  3. reddy ink

    reddy ink Active Member

    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.
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    I answered both above.
     
    reddy ink likes this.
  5. reddy ink

    reddy ink Active Member

    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.


     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    Change this:
    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:
    Code:
    <li><label><input type="radio" name="resource_file_type" value="fileless" checked="checked" /> {xen:phrase does_not_have_file}</label>
     
    reddy ink likes this.

Share This Page