Thanks for all of this. This really helped me get this sorted out.
For others who might be searching and wanting to access expando content, here's an example of how to do that:
1
2###
3## Don't forget to set journal.template.velocity.restricted.variables=
4## in portal-ext.properties; in other words, set it to nothing to unset the restriction.
5###
6
7## See http://www.liferay.com/community/forums/-/message_boards/message/14789299
8## this is where this comes from
9
10#set ($userLocalService= $serviceLocator.findService("com.liferay.portal.service.UserLocalService"))
11#set ($userId = $getterUtil.getLong($request.remote-user))
12#set($user = $userLocalService.getUserById($userId))
13
14#set ($userFirstName=$user.getFirstName())
15## This is a drop down select, so must be accessed this way
16#set ($class_year = $user.getExpandoBridge().getAttribute("gradYear").get(0))
17#set ($ugrad = $user.getExpandoBridge().getAttribute("UndergradSchool"))
18#set ($userCount=$userLocalService.getUsersCount())
19
20<h2>Getting variables from user, system, and expando</h2>
21<p>Year: $class_year</p>
22<p>School: $ugrad</>
23<p>First Name: $userFirstName</p>
24<p>User count: $userCount </p>
Please sign in to flag this as inappropriate.