Comment to 'Photo title not mandatory'
  • File to Edit: modules/boonex/photos/template/form_ghost_template_upload.html

    On line 19.

    Change

    <input placeholder="<bx_text:_bx_photos_form_entry_input_title />" class="bx-def-font-inputs bx-form-input-text block w-full py-2 px-3 border border-gray-300 dark:border-gray-700 rounded-md shadow-sm bg-white dark:bg-gray-900 placeholder-gray-500 focus:outline-none focus:placeholder-gray-400 focus:ring-2 focus:text-gray-900 dark:focus:text-gray-100 focus:ring-blue-500 focus:border-opacity-70 focus:ring-opacity-20 focus:border-blue-500 text-sm text-gray-700 dark:text-gray-300 appearance-none" type="text" value="" name="title-{file_id}" />
    

    to

    <input placeholder="<bx_text:_bx_photos_form_entry_input_title />" class="bx-def-font-inputs bx-form-input-text block w-full py-2 px-3 border border-gray-300 dark:border-gray-700 rounded-md shadow-sm bg-white dark:bg-gray-900 placeholder-gray-500 focus:outline-none focus:placeholder-gray-400 focus:ring-2 focus:text-gray-900 dark:focus:text-gray-100 focus:ring-blue-500 focus:border-opacity-70 focus:ring-opacity-20 focus:border-blue-500 text-sm text-gray-700 dark:text-gray-300 appearance-none" type="text" value="" name="title-{file_id}" required />
    

    This will make those Title inputs required.

    Trust me, I know the pain you feel when it comes to UNA when hearing this news, but if you just take a look at how the Photo app is setup from within Studio within the "Forms" application, you will realized, how disconnected the Photos module is, it looks like an 8th graders passion project, creating features and not 100% bridging them together.

    They don't supply the Title field upon upload, but have it for the edit/view forms, come on now...

    I'm sure if a real developer came along implemented the code for them to have a simple checkbox in the Photos Settings application within studio that would add/remove the "required" portion of that code, they will add it in, but we're asking for a lot here.

    Sorry UNA devs, there's no "just add CSS" fix here.