215 Posts
cubist
10 years ago
0
Topic
Using in J!3 and S3.2.0

I am trying to: Add a link to user profile from list view where the admin could then edit any user's profile without need to visit the back-end.

I tried Mehdi post per the older topic of the same title...
Which is this, to have a link to a user profile as you want, you should enable bridge between user object and article which contains the profile of a user.
To enable a bridge, you should:

  1. click on admin menu link "extensions"
  2. click on admin menu link "plugin manager"
  3. filter plugin by the type "cck_storage_location"
  4. click on plugin "Cck Storage Location - Joomla! User"
  5. In "basic options" panel, enable the bridge.
So, I tried this. And the list view completely removes any results when the bridge is enabled. I tried different access, public thru special with NO EFFECT. [Perhaps this is because I created my first set of test users while the bridge was disabled??]

And to be clear I have set the following in my List & Search Type form:
  • Add field Username with the value under choice 2: View selected and under "+" I have:
    • Content = Field
    • Field Name = username (taken from the #JOS#_users dB table; I also tried "#username#")
    • Object = User
    • rest are inherited

Can anyone clarify these settings for me? The search form does return a plain list, but I NEVER get a link to that user's details.

I did try another method which was using the "Item" view and then added a template and a position with PHP code within a /search folder:
$link =  'index.php?option=com_cck&view=form&layout=edit&type=applicants&id=';
$link .= $cck->get('user_id')->value;
$link .= '&Itemid=38'; ?>
This does work but a lotta extra effort ...

Thx so much and Best in the new year!!
Get a VIP membership