Liferay DXP 2026.Q4    |    Release Webinar: 18 November 2026    |    Replay coming soon! 

Blogs

Get the Query String from Page Configuration 'Advanced' option.

Set default query string without sending it in friendly URL. Can be useful in display templates.

Manushi Jani
Manushi Jani
読了時間: 1分未満


 

You can configure the site page with above shown string and fetch it using below code :

ServiceContextThreadLocal.getServiceContext().getRequest().getParameter("srce")

or

ParamUtil.get(ServiceContextThreadLocal.getServiceContext().getRequest(), "srce", "")

You can also fetch this in velocity template :

#set ($serviceContext = $portal.getClass().forName("com.liferay.portal.service.ServiceContextThreadLocal").getServiceContext())

#set ($httpServletRequest = $serviceContext.getRequest())

#set($seminarId =$paramUtil.getLong($httpServletRequest, 'srce'))
        

ページコメント

Related Assets...

結果が見つかりません。

More Blog Entries...

Himanshu Chauhan
11月 20, 2026
Tony Lim
11月 19, 2026