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" >

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 TaglibUsing Liferay Util Body Top »