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
Less Than a Minute Read


 

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'))
        

Page Comments

The Technicalities of Static Sites

David Oliveira Montenegro
View Blog >

Customization is Dead! Long Live Customization!

David H Nebinger
View Blog >
customization banner image.png

Public Bug Bounty Program

David H Nebinger
View Blog >
bugbounty.png
Showing 1 to 3 of 3 entries.