2

I have Profile2 and Profile2 Registration Path modules enabled, I set up two different profiles, and for one of them I created a field which is a taxonomy term with the Autocomplete term widget (tagging).

When adding a user within the administration interface, I have the autocomplete widget working, but for anonymous users trying to create a profile the widget is not even attached to the field... I know it is not attached because a field with the widget has a "autocomplete" class and an icon for ajax status in background, but the field on the registration form has no class..

How to add this widget ? Is it a permission issue ? or adding the class to the field through hook_form_FORM_ID_alter() could be enough ? (I don't have the field in the $form array though...

3
  • Turns out it is a permission issue : adding the permission for anonymous users to View published content solves my problem as I do not have any reason to not let them see the website content.. I guess for websites where content is for registered users only, this permission would not be granted and the widget would not be used on the taxonomy term field.. Maybe the Content Access module could help those use-cases
    – Gueno
    Apr 30, 2012 at 15:58
  • In the future, instead of leaving a comment, you should answer your own question and then mark that answer as accepted. Drupal Answers encourages you to answer your own questions when you find the answer; this helps future users who may have the same question that you did. Apr 30, 2012 at 23:51
  • I couldn't answer my own question yesterday, I had to wait 8hours before I could do, so instead of leaving people in the doubt, I did answer my own question by leaving a comment :)
    – Gueno
    May 1, 2012 at 7:36

1 Answer 1

2

Turns out it is a permission issue : adding the permission for anonymous users to View published content solves my problem as I do not have any reason to not let them see the website content

I guess for websites where content is for registered users only, this permission would not be granted and the widget would not be used on the taxonomy term field.. Maybe the Content Access module could help those use-cases

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.