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

Prefill form fields with values taken from Options table: hookAfterFooter() #1

Open
kunikla opened this issue Jun 21, 2018 · 1 comment
Labels
UX Affects user interface

Comments

@kunikla
Copy link
Collaborator

kunikla commented Jun 21, 2018

hookAfterFooter() can update the values in the text form fields using the values stored in the Options table, either by outputting a JS script or by calling functions in the PHP DOM library.

When compiling PHP, the DOM PHP module is included by default, so it should be available on most servers hosting Omeka websites. If used, it might be wise to mention the PHP DOM module in user documentation as a requirement for the plugin.

@kunikla kunikla added the UX Affects user interface label Jun 22, 2018
@kunikla
Copy link
Collaborator Author

kunikla commented Jun 25, 2018

Another approach is to create/update the appropriate ElementText records, in which case Omeka will take care of displaying them. The fields will be blank when the Item is being created. Increased chance of inconsistencies in the database when information is duplicated. Could figure out a way to rely solely on the values stored in the ElementText table.

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

No branches or pull requests

1 participant