Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Ben Kramer
Liferay portal context
April 23, 2013 10:41 AM
Answer

Ben Kramer

Rank: New Member

Posts: 4

Join Date: April 3, 2013

Recent Posts

I'm running Liferay 6.0.x within tomcat and am trying to st the context for the portal, portlets and themes, and I'm wondering if there is any variable available to portal-ext.properties that corresponds to the default servlet context path? For instance, I have several portlets (e.g my-portlet and my-other-portlet) and I would like to use the virtual path property so that

portlet.virtual.path=/this/is/my/context/${servlet.context.path}

would result in http://localhost/this/is/my/context/my-portlet and http://localhost/this/is/my/context/my-other-portlet. Is this possible?
Anonymous
RE: Liferay portal context
April 24, 2013 6:34 PM
Answer

Anonymous

Is this what you are looking for?


##
## Portlet
##

#
# Set this property to set the default virtual path for all hot deployed
# portlets. See liferay-portlet-app_5_1_0.dtd and the virtual-path element
# for more information.
#
portlet.virtual.path=