19 June, 2012

Show all pages in theme

You can write below code in theme to list out all the pages(Hidden also) which we have created through GUI:

#set($layoutLocalService = $serviceLocator.findService("com.liferay.portal.service.LayoutLocalService"))
#set($topPublicLayouts = $layoutLocalService.getLayouts($layout.getGroupId(),false)) 
#foreach($layout_page in $topPublicLayouts)

Popular Posts

Featured Post

Liferay 7.3 compatibility matrix

Compatibility Matrix Liferay's general policy is to test Liferay Portal CE against newer major releases of operating systems, open s...