Now that we have our FreeMarker macro library deployed (from part 1), let’s set up the web content structure, template and article to test our macro library. If you are unfamiliar with web content structures and templates you will want to read the Liferay User Guide on advanced content with structures and templates first.
Liferay supports using FreeMarker as a web content template language. There are many things I really like about FreeMarker and use it whenever possible. Macros are one of those features, as you can create libraries of routines you can use over and over. But it’s not apparent where to place those libraries to get Liferay to recognize them and use them.
Welcome to the Learn Liferay blog.
The goal of this blog is to share ideas and techniques for using Liferay. If you have any feedback, questions or ideas for a post, please let me know using the feedback form.