Fórum

Portal URL

thumbnail
mohammad azaruddin, modificado 10 Anos atrás.

Portal URL

Expert Postagens: 492 Data de Entrada: 17/09/12 Postagens Recentes
Hi
how to get omniadmin portal URL in another instance
thumbnail
David H Nebinger, modificado 10 Anos atrás.

RE: Portal URL

Liferay Legend Postagens: 14915 Data de Entrada: 02/09/06 Postagens Recentes
there is no omniadmin url. You are either an omniadmin (because it's defined in portal-ext.properties) and you have admin privs or you're not an omniadmin and you don't.
thumbnail
mohammad azaruddin, modificado 10 Anos atrás.

RE: Portal URL

Expert Postagens: 492 Data de Entrada: 17/09/12 Postagens Recentes
In general scenario (www.localhost:8080) is the default instance which has all the previlages....And suppose i have created new instance(www.newinstance.com) and in new instance(www.newinstance.com) i want to get the portalURL of localhost ..that is (www.localhost:8080),Dynamically..



themeDisplay.getPortalURL() return the current portalURL.But i need default instance url www.localhost:8080 dynamically in (www.newinstance.com)
thumbnail
David H Nebinger, modificado 10 Anos atrás.

RE: Portal URL

Liferay Legend Postagens: 14915 Data de Entrada: 02/09/06 Postagens Recentes
localhost is never dynamic. localhost always refers to the local host. it doesn't dynamically point anywhere.
thumbnail
mohammad azaruddin, modificado 10 Anos atrás.

RE: Portal URL

Expert Postagens: 492 Data de Entrada: 17/09/12 Postagens Recentes
You are correct....ok i need portalUrl of instance which has all the previliges(ie default portal url ) when i work on newly created instance....hope u understood my question