I'm using Liferay 6.2 and I would like to get the default site URL using Velocity.
Thanks.
Try if $themeDisplay.getURLHome() cuts it.
$themeDisplay.getURLHome()
UPDATE: $site_default_url
$site_default_url
See example in Liferay's unstyle theme: https://github.com/liferay/liferay-portal/blob/a1329911eab1430b2fba1d2dbf09843aab6c2bb6/portal-web/docroot/html/themes/_unstyled/templates/portal_normal.vm#L29
Try this one $themeDisplay.getPortalURL()
$themeDisplay.getPortalURL()
Try if$themeDisplay.getURLHome()
cuts it.UPDATE:
$site_default_url
See example in Liferay's unstyle theme: https://github.com/liferay/liferay-portal/blob/a1329911eab1430b2fba1d2dbf09843aab6c2bb6/portal-web/docroot/html/themes/_unstyled/templates/portal_normal.vm#L29