Considering scenario: there is one portal instance, two groups (either communities or organizations): street and workshop.
Each group has its own virtual host like
street.bookpub.com,
workshop.bookpub.com. Each group has its own public pages and private pages.
For example, the group street has following page structure
1Home
2 Test
3 Demo
4Resource
5Help
And each page has its own friendly URL like
1/home, /resource, /help, /test, /demo
For example, the group workshop has following page structure
1Help
2Resource
3Test
4 Demo
5Home
And each page has its own friendly URL like
1/help, /resource, /home, /test, /demo
Requirements:
1) Set home URL global – scoped to portal-instance, like /test
2) When hit URL: http: //street.bookpub.com[/], it should show the page /test of the group street;
3) No redirect in the picture; that is, the URL http: //street.bookpub.com[/] stays non-changed.
4) When hit URL: http: //workshop.bookpub.com[/], it should show the page /test of the group workshop;
5) Again there is no redirect in the picture; that is, the URL http: //workshop.bookpub.com[/] stays non-changed.
Is this useful use case?
Solution proposal:
A. Add following properties
1## Home URL enabled or disabled
2virtual.host.home.url.enabled=true
3
4## Default home URL value. It will be used only if the property
5## virtual.host.home.url.enabled is true, and home URL of Control Panel
6## settings has value NULL.
7## That is, home URL value could be reset in Control Panel
8virtual.host.home.url.name=/test
B. Implement home URL as new feature.
Your suggestions?
Thanks
Jonas Yuan
==================
The Author of Liferay Books:
Liferay User Interface DevelopmentLiferay Portal 6 Enterprise IntranetsLiferay Portal 5.2 Systems DevelopmentLiferay Portal Enterprise Intranets Please sign in to flag this as inappropriate.