Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Getting a user's profile URL without using a transformation View modes: 
User avatar
Member
Member
jhoppe - 3/23/2011 9:38:38 AM
   
Getting a user's profile URL without using a transformation
Hi,

I'm trying to get the link to a user's profile. It is not the current user.

I developed a custom web part (not sure if there is a better solution).

Where in the API, or writing a custom query, can I get a user's profile URL? I can easily pass the user's username in as an argument.

Thanks!
Joe Hoppe

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 3/25/2011 3:07:37 PM
   
RE:Getting a user's profile URL without using a transformation
Hello,

You can generate the path dynamically according to your settings. If you check the settings dialog in CMSSiteManager / Settings / Community you can see, that pages are generated dynamically. Please select the correct site in the upper left corner drop down list. In our sample community site is the Member profile path set to /Members/{UserName}. You can see, that a wildcard is used. Now you have just to generate links in the specified format to access the user's profile. For example:

www.example.com/Members/Abi.aspx

In this case is Abi the UserName.

If you want to get all the UserNames please check the CMS_User table.

Best regards,
Boris Pocatko

User avatar
Member
Member
jhoppe - 3/31/2011 11:56:03 AM
   
RE:Getting a user's profile URL without using a transformation
That's what I wound up doing. For some reason I thought there would be a function like getdocumenturl.

Thanks!

User avatar
Member
Member
Byron - 9/26/2011 7:45:55 AM
   
RE:Getting a user's profile URL without using a transformation
Alright, so I have a site. There's a templated page called "members" off the root. The page has the friends viewer and uses the MembersList transformation. I get nothing, well, not true, I get a 404 error.

http://bp.thesabagroup.ca/Members/Jason.aspx
Jason is a valid user.

Under Settings > Community > Member Profile Path the value is: /Members/{UserName}


From what I understand and I may well be wrong the entire path "/Members/{UserName}" + .aspx is generated dynamically. So I shouldn't need a page called "Members" off the root... Or is this an erroneous thought?

How, using 5.5R2 can I show someone the public profile of a user (for example using the invitation message/email link to view the user profile)? Because right now, it's just not working.


User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 9/26/2011 2:16:16 PM
   
RE:Getting a user's profile URL without using a transformation
Hello,

I was able to access the profile page just fine. Was the Members page missing? In this setup is this page necessary.

Best regards,
Boris Pocatko

User avatar
Member
Member
Byron - 9/26/2011 3:19:34 PM
   
RE:Getting a user's profile URL without using a transformation
Well, as it turns out I was in fact looking at the wrong set of documentation; the developer documents and not the community documents. It's working now.

B

User avatar
Member
Member
Byron - 9/26/2011 3:19:42 PM
   
RE:Getting a user's profile URL without using a transformation
Well, as it turns out I was in fact looking at the wrong set of documentation; the developer documents and not the community documents. It's working now.

B