Text box "Add tags to all uploaded files"

g_r_a_d

Joined: 2011-11-27
Posts: 8
Posted: Thu, 2014-05-08 05:03

How to remove text box "Add tags to all uploaded files" from upload form?
This feature is not working -> #1124

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2014-05-08 13:31

It does work.
You have to enter the text first before you select the photos and click "add".
Sure the UI needs improvement. Perhaps the behavior should be to un-focus/disable the tag box once the upload starts or the box could have some instructions like "add tags first"
Or you can edit the code to make some UI improvements as suggested.

If you still want to remove it
remove

    $group->input("tags")
      ->label(t("Add tags to all uploaded files"))
      ->value("");

from moduls/helpers.tag/tag_event.php

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2014-05-09 00:22

What you can do with HTML5:
Edit modules/tag/helpers/tag_event.php find:

    $group->input("tags")
      ->label(t("Add tags to all uploaded files"))
      ->value("");

and change to:

    $group->input("tags")
      ->placeholder(t("Add tags here before you select photos"))
      ->label(t("Add tags to all uploaded files"))
      ->value("");

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
g_r_a_d

Joined: 2011-11-27
Posts: 8
Posted: Fri, 2014-05-09 10:57
    $group->input("tags")
      ->placeholder(t("Add tags here before you select photos"))
      ->label(t("Add tags to all uploaded files"))
      ->value("");

thx for help :)