Lee Jordan 3 Years Ago One thing we do need is a codex of useful template variables and for that list to be robust enough so as to avoid having to do anything complex in a template. My need is different to someone else's, while the basics are there it would be nice for Liferay to provide some servicelocator data more easily. One example I have is in the theme. I want to know if the user is a site admin, a site member or just a visitor. Stop and think how powerful that is, and there is a permissions checker but it's so complex it's a barrier. Just give us isSiteMember etc. Please sign in to reply. Reply as... Cancel
Jürgen Untch 3 Years Ago - Edited Thanks for this really nice post David! In my freemarker template I was exactly doing what you describe. Creating an XML parser to parse fields out of the web content article. This is because I have never heard about context contributors before. I would definitely try to use a context contributor in the next freemarker template I am working on. Please sign in to reply. Reply as... Cancel