craftsmancoding / taxonomies

Bringing Taxonomies to MODX Revolution
5 stars 4 forks source link

Bulk Add Terms #2

Open fireproofsocks opened 9 years ago

fireproofsocks commented 9 years ago

It would save some serious time if you could add terms in bulk (e.g. from the CMP or on each Term page).

The functionality should be this:

On each Term page, include a button/link for "Quick Add". When clicked, this should pop open a modal window.

The contents of the modal window should be:

  1. A dropdown at the top listing all available Taxonomies.
  2. A textarea showing existing terms (with an X so they can be removed) and you can type in new terms. This would look very much like the "Sports" bit done for StrengthCard.

When a new taxonomy is selected in the dropdown, this should cause the page to be populated with the terms that are immediate children of the selected parent taxonomy.

On each term, there need to be 2 clickable areas:

All Ajax requests should return JSON data. Furthermore... I think that the parent taxonomy has all the information we need CACHED in its properties, so the responses should be really quick.

The trick will be to quickly and easily trigger the onUpdate or onDelete actions that do the heavy lifting of writing all the cache data into the resource properties.

fireproofsocks commented 9 years ago

See the cmp branch. The current state of the code on the branch does not meet the requirements here. The UX isn't clean or efficient.

To clarify:

  1. On each Term page, include a button/link for "Quick Add". When clicked, this should pop open a modal window. We have a "Pages" tab on each Term page. The "Quick Add" button needs to appear there.
  2. On each Page that shows Taxonomies (i.e. on the Taxonomies tab), we need to have buttons for this Quick Edit feature. The button should be next to each taxonomy on the page.
  3. The CMP lists the available taxonomies, but y ou have to select the taxonomy again from the dropdown field. It's bad UX to have to select the thing twice.

See the attached : taxonomies-quickedit

a) the terms should be auto-loaded when a taxonomy is selected. b) when you click on a term, the window should navigate deeper into the hierarchy: the window shows ONLY the immediate children of the selected taxonomy or term. c) when the X is clicked on a term, it is removed. d) adding a new term should be triggered by typing a comma "," -- you can also have an "Add" button too (like the current solution).