3

I want to write my own custom profile plugin, but the problem is that the available tutorials (here and here) are a little outdated.

Right now I'm looking at the setFieldAttribute(), the last argument is $group, and the documentation says:

string $group The optional dot-separated form group path on which to find the field.

And a usage example is this:

$form->setFieldAttribute('address1', 'description', 'PLG_USER_PROFILE_EI_FILL_FIELD_DESC_SITE', 'profile');

Do I need to change the value to the name of my plugin or is it the same ('profile')?

1 Answer 1

1

The group refers to a named fieldset element inside a form definition. Find the field you are trying to edit into the form definition and get the name of its parent fieldset element and use that for the group.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.