Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Adding New Field List Values On-the-Fly in Article Editor #44074

Open
keep opened this issue Sep 13, 2024 · 1 comment
Open

Allow Adding New Field List Values On-the-Fly in Article Editor #44074

keep opened this issue Sep 13, 2024 · 1 comment

Comments

@keep
Copy link

keep commented Sep 13, 2024

Steps to reproduce the issue

  • Add a new custom field called "color" to com_content.article with the field type set to "list."
  • Add the list values: red, white, and green.
  • When editing an article, under the 'Fields' tab, choose one or more colors from the predefined list (depending on whether the field is set to allow multiple selections).
  • Notice that if you need to add a new color (such as black, blue, or yellow) while editing the article, you must save and close the article, go to the field editor, add the new value, save the field, and then return to the article editor to choose the new color.

Expected result

While editing an article, when there is no desired option in the "color" list, there should be a way to add a new value (e.g., black, blue, or yellow) directly from the article editor, such as an input field or button called 'New List Value.' The new value should be added on-the-fly, perhaps via AJAX or during the article save process.

Actual result

There is currently no way to add new values to the "color" list directly from the article editor. Instead, the user must exit the article editor, navigate to the field editor, add the new values manually, and then return to the article editor to select the new value.

System information (as much as possible)

Joomla 5.1.4, PHP 8.3

Additional comments

This feature would improve workflow efficiency for users managing dynamic lists, reducing the need to leave the article editor when new options are required. It would be great if this functionality could be implemented via AJAX or another method that allows seamless value additions without needing to leave the current editing context.

@brianteeman
Copy link
Contributor

Do you mean that you want a custom field that works in the same way as the current tags field?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants