First of all, I'm new to Drupal, and I feel pretty ignorant. This may be a dumb question.
I'm using profile two to assign roles when registering, and provide a seperate profile page for the users. Users can have multiple profiles.
There is no easy way for an administrator to switch between users account page and profile page. Anyone knows of an easy way?
I tried adding a "username" link field to the profile pages, and setting that field during registration using the Rules module. That works fine, but I don't want the users to be able to change that when they update their profile page. Trying Display suite to hide that field on the edit-profile page doesn't work, it still shows up. Any way to hide that field on the edit-profile pages? Or at least disable it?

Any ideas to point me in the right direction would be most welcome. Once again, I'm new here, please keep the explanation simple.

Comments

gaofeng’s picture

Status: Active » Closed (fixed)

Eureka! Found it. Spent a lot of afternoons and evenings looking for the solution. Just in case someone else has the same kind of of trouble, I tell you what I found.
In your profile type (profile2 type), after enabling Display Suite to change the layout in the display view, click on the extra tab on the bottom left that says "Custom fields".
You can add four types of fields. I added a "code field". On the next page you will have to select the entities for which this field will be availabe (in this case Profile2). Then in the field "Field code" further down the same page, you can add a hyperlink to the user account you want to link to. You can use tokens. I wrote like this: <a href="[profile2:user:url]">[profile2:user:name]</a>
And oh, the nice thing is this field doesn't show up on the form itself, it only shows on the display view, so the user can't mess with the values in it.