The User Profile Plugin extends the Velocity context by a component which allows to access user profile data from Velocity templates.
The velocity context component has the name uppVelocityApi. It provides one method with the following signature:
getProperty(user, profileElementName):
#set( $user = $userAccessor.getUser("userWithProfileElement") ) #set($profileElementName = "Mobile Phone" ) ##set($mobileNumber = $uppVelocityApi.getProperty($user, $profileElementName) ) |