Using Liferay Util Body Bottom

The body bottom tag is not a self-closing tag. It lets you add additional HTML or scripts to the bottom of the body tag. content placed between the opening and closing of this tag is passed to the body_bottom.jsp and outputs in this JSP.

This tag also has an optional outputKey attribute. If several portlets on the page include the same resource with this tag, you can specify the same outputKey value for each tag so the resource is only loaded once.

The example configuration below uses the <liferay-util:body-bottom> tag to include JavaScript provided by the portlet’s bundle:

<liferay-util:body-bottom outputKey="bodybottom" >
	<script 
  src="/o/my-liferay-util-portlet/js/my_custom_javascript_body_bottom.js" 
  type="text/javascript"></script>
</liferay-util:body-bottom>

Now you know how to use the <liferay-util:body-bottom> tag to include additional resources in the bottom of the page’s body.

Using the Liferay Util HTML Body Top Tag

Using the Liferay Util HTML Top Tag

Using the Liferay UI Taglib

« Using the Liferay Util TaglibUsing Liferay Util Body Top »
Was this article helpful?
0 out of 0 found this helpful