#3157 - Allow field hooks to self-categorise
| Identifier | #3157 |
|---|---|
| Issue type | Feature request or suggestion |
| Title | Allow field hooks to self-categorise |
| Status | Open |
| Tags |
Good for training (custom) |
| Handling member | Deleted |
| Addon | core_fields |
| Description | We currently have this code in sources/fields.php:
$orderings = array( do_lang_tempcode('FIELD_TYPES__TEXT'), 'short_trans', 'short_trans_multi', 'short_text', 'short_text_multi', 'long_trans', 'long_text', 'posting_field', 'codename', 'password', 'email', do_lang_tempcode('FIELD_TYPES__NUMBERS'), 'integer', 'float', do_lang_tempcode('FIELD_TYPES__CHOICES'), 'list', 'list_multi', 'state', 'country', 'region', 'tick', do_lang_tempcode('FIELD_TYPES__UPLOADSANDURLS'), 'upload', 'upload_multi', 'picture', 'picture_multi', 'video', 'video_multi', 'url', 'url_multi', 'page_link', 'theme_image', do_lang_tempcode('FIELD_TYPES__MAGIC'), 'guid', do_lang_tempcode('FIELD_TYPES__REFERENCES'), 'isbn', 'reference', 'reference_multi', 'content_link', 'content_link_multi', 'member', 'member_multi', 'author', //do_lang_tempcode('FIELD_TYPES__OTHER'), 'color', 'date', 'just_date', 'just_time', 'tel', Will go under OTHER automatically ); Ideally each hook would just define a category, and the code would automatically structure the selection list. That's more modular. |
| Steps to reproduce | |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
There have been no comments yet