Search code examples
liferayfreemarker

Displaying images in Liferay themes using FreeMarker


Velocity has a variable $images_folder (for example, src="$images_folder/image01.png"). I create FreeMarker Plugin and this variable doesn't work (images don't display). What kind of path should I use in portal_normal.ftl instead of $images_folder?


Solution

  • FreeMarker has no $someVariableName, but ${someExpression}. So try src="${images_folder}/image01.png"