On adding a web content in an asset publisher, we are getting empty request object but if we add the same web content in web content display then we are able to see the request object.
Here is what I tried:
My requirement is: I need the themeDisplay object which is available inside request object of "web content".
Any idea whether this is expected behavior? Whether this is any possible workaround to achieve my requirement?
Thanks in advance!
Which Liferay you are using ? If you are using 6.2 then why don't use ADT? It contains ${themeDisplay} (FTL), $themeDisplay (VM) objects, or given below code (LR 6.1) also work. If you are using 6.1 then $request.theme-display will workout.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.