Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经连接了 ImageGallery Liferay Portlet 来修改画廊的布局。
由于我对结果感到满意,因此我想在控制面板中添加一些新图片,然后 - 震惊!与前端相同的视图。
所以我需要一个<c:if test="">表达式来确定 portlet 当前是在前端还是在后端呈现。
<c:if test="">
在<liferay-theme:defineObjects />您的 JSP 页面中(否则您将没有layout对象),您可以使用以下条件:
<liferay-theme:defineObjects />
layout
layout.isTypeControlPanel()