Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Users Data Source View modes: 
User avatar
Member
Member
lwhittemore-emh - 6/12/2013 3:11:16 PM
   
Users Data Source
I am using
/Profile/{UserName}
in my document url "path or pattern" field. How do I get that username into a users data source so that it only shows the specific user?

User avatar
Member
Member
lwhittemore-emh - 6/12/2013 7:47:54 PM
   
RE:Users Data Source
{%UserName%}
seems to work for those who are wondering. I am not sure why or how.. Now I need to be able to get the UserId from it if possible to plug into a different webpart.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 6/13/2013 8:52:23 AM
   
RE:Users Data Source
{??} is a query string macro. Take a look here at the types of macros available.

In regards to the other web part, is it one you created or an out of the box one?

User avatar
Member
Member
Swainy - 6/14/2013 8:52:36 AM
   
RE:Users Data Source
If you do need to get the Username and it's not available in the standard kentico macros. You can create your own custom macros which return the information you need.

You can also do custom methods and functions within your transformations, see here:

http://devnet.kentico.com/docs/devguide/index.html?adding_custom_functions_to_transformations.htm

This is really useful at certain times when the standard macros don't do exactly what you need.

If you need anymore info let me know,

Thanks,

Matt