留言板
Alloy layout
this is more of an annoyance than anything else, but after trying to figure out for the last hour why the <aui:layout> tag wouldn't work in my control-panel portlet, I realised that the <aui:layout> and <aui:column> tags were already being implemented to render the control panel, and it doesn't appear that nested layouts are supported.
Just thought I'd post this incase anyone else encountered this problem.
-J
Just thought I'd post this incase anyone else encountered this problem.
-J
Hi Jamie,
I know it's too late to help you but I just recently came across your post while was trying to resolve the same issue on Liferay 6.1.30. After spinning my wheels for awhile I found a solution that might help someone else that finds this thread.
I was able to get my aui layouts working in the control panel by adding a dummy class to the <aui:column> tag:
By adding the in-cp class, Liferay wasn't adding the panel-page-body class which was the one that was causing the problem. The in-cp class isn't an actual class that's defined in my portlet's css, it's just a placeholder. Not sure if this is the best solution, but it worked for me.
I know it's too late to help you but I just recently came across your post while was trying to resolve the same issue on Liferay 6.1.30. After spinning my wheels for awhile I found a solution that might help someone else that finds this thread.
I was able to get my aui layouts working in the control panel by adding a dummy class to the <aui:column> tag:
<aui:layout>
<aui:column columnwidth="50" first="true" cssclass="in-cp">
<h1>Column 1</h1>
</aui:column>
<aui:column columnwidth="50" last="true" cssclass="in-cp">
<h1>Column 2</h1>
</aui:column>
</aui:layout>
By adding the in-cp class, Liferay wasn't adding the panel-page-body class which was the one that was causing the problem. The in-cp class isn't an actual class that's defined in my portlet's css, it's just a placeholder. Not sure if this is the best solution, but it worked for me.