mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #40768
[Bug 1661125] [NEW] Add custom profile fields
Public bug reported:
Allow the adding of custom profile fields via a
local/lib/artefact_internal.php file that extends the ArtefactInternal
one
Have
PluginArtefactInternalLocal::get_artefact_types()
PluginArtefactInternalLocal::get_profile_artefact_types()
PluginArtefactInternalLocal::get_contactinfo_artefact_types()
extend their PluginArtefactInternal equivalents
Have
ArtefactTypeProfileLocal::get_all_fields()
extend the ArtefactTypeProfile equivalent
Have
ArtefactTypeProfileLocal::get_desired_fields()
To fetch info about which tab the custom field should go in and their
order on the Content -> Profile page
Also added hooks for profile artefacttypes so that we can fetch custom info for
- getoptions() - get select options for field
- defaultoption() - get default value for field
- format_result() - to human readable info (useful for 'select' fields)
- usersearch_column_structure() - info about which column template to use for admin users search list for custom field
- get_special_data() - in case data is not saved in the 'artefact' table fetch it from where it lives
** Affects: mahara
Importance: Wishlist
Assignee: Robert Lyon (robertl-9)
Status: In Progress
** Changed in: mahara
Importance: Undecided => Wishlist
** Changed in: mahara
Assignee: (unassigned) => Robert Lyon (robertl-9)
** Changed in: mahara
Milestone: None => 17.04.0
** Changed in: mahara
Status: New => In Progress
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1661125
Title:
Add custom profile fields
Status in Mahara:
In Progress
Bug description:
Allow the adding of custom profile fields via a
local/lib/artefact_internal.php file that extends the ArtefactInternal
one
Have
PluginArtefactInternalLocal::get_artefact_types()
PluginArtefactInternalLocal::get_profile_artefact_types()
PluginArtefactInternalLocal::get_contactinfo_artefact_types()
extend their PluginArtefactInternal equivalents
Have
ArtefactTypeProfileLocal::get_all_fields()
extend the ArtefactTypeProfile equivalent
Have
ArtefactTypeProfileLocal::get_desired_fields()
To fetch info about which tab the custom field should go in and their
order on the Content -> Profile page
Also added hooks for profile artefacttypes so that we can fetch custom info for
- getoptions() - get select options for field
- defaultoption() - get default value for field
- format_result() - to human readable info (useful for 'select' fields)
- usersearch_column_structure() - info about which column template to use for admin users search list for custom field
- get_special_data() - in case data is not saved in the 'artefact' table fetch it from where it lives
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1661125/+subscriptions
Follow ups
-
[Bug 1661125] Re: Add custom profile fields
From: Robert Lyon, 2017-04-27
-
[Bug 1661125] A patch has been submitted for review
From: Mahara Bot, 2017-04-23
-
[Bug 1661125] A change has been merged
From: Mahara Bot, 2017-04-23
-
[Bug 1661125] A change has been merged
From: Mahara Bot, 2017-04-23
-
[Bug 1661125] Re: Add custom profile fields
From: Kristina Hoeppner, 2017-04-19
-
[Bug 1661125] Re: Add custom profile fields
From: Dominique-Alain JAN, 2017-04-17
-
[Bug 1661125] Re: Add custom profile fields
From: Kristina Hoeppner, 2017-04-02
-
[Bug 1661125] Re: Add custom profile fields
From: Robert Lyon, 2017-03-31
-
[Bug 1661125] A change has been merged
From: Mahara Bot, 2017-03-30
-
[Bug 1661125] A patch has been submitted for review
From: Mahara Bot, 2017-02-02