?
avatar stutteringp0et
stutteringp0et
18 Dec 2017

Steps to reproduce the issue

Create a fields plugin. extend an existing field (I was extending checkbox) within a fields folder of my new custom field. In the plugin php - use $form->addFieldPath(JPATH_PLUGINS.'/fields/yourfield/fields'); to allow the plugin to use your new field.

In /administrator - I can edit a user after creating a custom field and that field displays as expected. When I edit the profile as a user - I'm given a text field (the fallback)

This is confusing to write.... I hope I'm explaining it well enough.

Expected result

addFieldPath functions in both front-end and backend

Actual result

addFieldPath only functions in backend

System information (as much as possible)

PHP7.1.11, Nginx, MariaDB10.2.11

Additional comments

avatar stutteringp0et stutteringp0et - open - 18 Dec 2017
avatar joomla-cms-bot joomla-cms-bot - change - 18 Dec 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 18 Dec 2017
avatar stutteringp0et stutteringp0et - change - 18 Dec 2017
The description was changed
avatar stutteringp0et stutteringp0et - edited - 18 Dec 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 18 Dec 2017
Category com_fields com_plugins
avatar stutteringp0et
stutteringp0et - comment - 18 Dec 2017

I checked the result of $result = $form->addFieldPath(JPATH_PLUGINS.'/fields/myfield/fields');

The result array contains the path I added

avatar stutteringp0et stutteringp0et - change - 19 Dec 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-12-19 23:19:51
Closed_By stutteringp0et
avatar stutteringp0et stutteringp0et - close - 19 Dec 2017

Add a Comment

Login with GitHub to post a comment