MediaPost Social Network

Up:if-can-see

Displays the enclosed content if the logged in user can see the specified what attribute of the specified user.

Attributes

  • Required
    • int uid - The user id to check for.
  • Optional
    • string what - What privacy setting to check for. (default value is profile). Other valid values are profile.

Sample code

 <up:if-can-see uid="12345" what="profile">
   Check out how cool <up:name uid="12345" /> is.
   <up:else>Sorry, no dice.</up:else>
 </up:if-can-see>

Notes

  • Can be used in conjunction with up:else