Programmatically deploying portlets in locations through liferay?
I'd like to have a consis开发者_Python百科tent layout every time I deploy my WAR, and currently, I need to manually move and add portlets to get the layout I need. Is there a way I can anagrammatically or through configuration setup liferay? Currently, the database isn't versioned, as I'm not sure there's a good way to do that.
Yes, you can use a Layout, perhaps specified by a Layout Template. These layouts can be part of a Layout Set to create an entire portal.
To do this programmatically, you can follow the tutorial here. The class LayoutLocalServiceUtil
is going to be key to the process.
精彩评论