Hm...idk if I get you correct...
I'm achieving this by linking to a resource which holds the "People"-snippet:
Chunk:
<p><a href="[[~241]]?user=[[+id]]">">view profile</a></p>
"People"-snippet call on resource 241:
[[!mySession]]
[[!Profile? &user=`[[+user]]`]]
The [[+user]]-placeholder is "built" in the mySession-snippet:
<?php
$myUserId = $_GET['user'];
$profile = $modx->getObject('modUserProfile', array('internalKey' => $myUserId));
$modx->setPlaceholder('user', $myUserId);
This looks for the URL-variable which holds the user-id.
Hope this helps...
EDIT:
Bob Ray did point me to this:
http://forums.modx.com/thread/93111/search-in-user-extended-fields?page=2#dis-post-511685
You should also think about the security implications, because anyone can access that page with any user ID (including yours). Putting it in a $_SESSION variable wherever you currently construct the URL would be safer:
$_SESSION['user'] = $userId;
So you should better try to get the $_SESSION variable set! Then I think you don't have to use the URL-variable, you have to check for the $_SESSION variable in the mySession-snippet I think...didn't try this yet, because my profile-sites are in a restricted area.
[ed. note: profilneurotiker last edited this post 9 years, 6 months ago.]