문제

Is there any way how to access GET or POST parameters from ASSET PUBLISHER velocity template?

For example, if I have one asset publisher on site /announcements, i need to access GET parameters for example: /announcements?display=maximized.

Is there any solution how to access 'display' parameter from velocity template in asset publisher?

Thanks a lot.

도움이 되었습니까?

해결책

All right, I have found the right solution. In VM template we need to use this command:

$portalUtil.getOriginalServletRequest($request).getParameter('parameter-name')

다른 팁

In my liferay theme I am getting request parameters this way:

$request.getParameter("display")

So you may try the same in your template file.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top