Fórumok
How to set home page url for a site?
Neetu Mishra, módosítva 11 év-val korábban
How to set home page url for a site?
Junior Member Bejegyzések: 75 Csatlakozás dátuma: 2012.05.21. Legújabb bejegyzések
Hi All,
My requirement is when user clicks on logo he/she should redirect to home page URL.
So, I am trying this:
Click on Go To -> Control Panel -> Portal -> Portal Settings -> General tab
and then setting Home url to /web/guest/home where home is my hidden page.
Now when I am clicking on logo, it's just refreshing the page
Please help me regarding this.
Thanks in advance!
--
Neetu
My requirement is when user clicks on logo he/she should redirect to home page URL.
So, I am trying this:
Click on Go To -> Control Panel -> Portal -> Portal Settings -> General tab
and then setting Home url to /web/guest/home where home is my hidden page.
Now when I am clicking on logo, it's just refreshing the page
Please help me regarding this.
Thanks in advance!
--
Neetu
Tejas Kanani, módosítva 11 év-val korábban
RE: How to set home page url for a site?
Liferay Master Bejegyzések: 654 Csatlakozás dátuma: 2009.01.06. Legújabb bejegyzések
I guess as your home page is hidden, its behaving like this.
It should work if you remove hidden for home page, if your requirement permits.
It should work if you remove hidden for home page, if your requirement permits.
Neetu Mishra, módosítva 11 év-val korábban
RE: How to set home page url for a site?
Junior Member Bejegyzések: 75 Csatlakozás dátuma: 2012.05.21. Legújabb bejegyzésekTejas Kanani:
I guess as your home page is hidden, its behaving like this.
It should work if you remove hidden for home page, if your requirement permits.
Hi Tejas,
Thanks for your quick reply.
As per my observation the first non-hidden page present in the navigation bar is treated as home page url. So, it's working if I remove hidden for home page but according to my requirements my home page is a different page from the pages present on the navigation bar.
Do you have any idea how should I do this?
Thanks in advance!
--
Neetu
Tejas Kanani, módosítva 11 év-val korábban
RE: How to set home page url for a site? (Válasz)
Liferay Master Bejegyzések: 654 Csatlakozás dátuma: 2009.01.06. Legújabb bejegyzések
Hi Neetu,
In such case I think you can do one thing.
Just make home page visible(Remove hidden checked) and inside your theme just make modification in navigation display to not include home page in navigation bar. So in this case it will remain hidden for users. And when you click on logo it will take you to the home page.
Just a thought !! Might help you ...
Regards,
Tejas
In such case I think you can do one thing.
Just make home page visible(Remove hidden checked) and inside your theme just make modification in navigation display to not include home page in navigation bar. So in this case it will remain hidden for users. And when you click on logo it will take you to the home page.
Just a thought !! Might help you ...
Regards,
Tejas
Neetu Mishra, módosítva 11 év-val korábban
RE: How to set home page url for a site?
Junior Member Bejegyzések: 75 Csatlakozás dátuma: 2012.05.21. Legújabb bejegyzések
Thanks Tejas for your suggestion!
Will try to modify my navigation.vm file
Will try to modify my navigation.vm file
Enrique Valdes Lacasa, módosítva 9 év-val korábban
RE: How to set home page url for a site?
Junior Member Bejegyzések: 92 Csatlakozás dátuma: 2014.07.29. Legújabb bejegyzések
Thanks for the suggestion Tejas, smart solution! I am implementing the link of my logo to go to the first page, which will be hidden in the navigation. I am pasting the code I used in Liferay 6.2. To skip the first element of the navigation items, this should be added in the navigation.vm:
It should wrap the <li> element used to iterate each navigation item as you can see.
#if ( $nav_item.getName() != $nav_items.get(0).getName() )
<li> .... </li>
#end
It should wrap the <li> element used to iterate each navigation item as you can see.
Jignesh Vachhani, módosítva 11 év-val korábban
RE: How to set home page url for a site?
Liferay Master Bejegyzések: 803 Csatlakozás dátuma: 2008.03.10. Legújabb bejegyzések
Hi Neetu,
When you hover your mouse in logo link which URL its showing ?
If its showing proper home page URL then problem could be with browser caching.
Try to remove browser cache and check once.
When you hover your mouse in logo link which URL its showing ?
If its showing proper home page URL then problem could be with browser caching.
Try to remove browser cache and check once.
Neetu Mishra, módosítva 11 év-val korábban
RE: How to set home page url for a site?
Junior Member Bejegyzések: 75 Csatlakozás dátuma: 2012.05.21. Legújabb bejegyzésekJignesh Vachhani:
When you hover your mouse in logo link which URL its showing ?
If its showing proper home page URL then problem could be with browser caching.
Try to remove browser cache and check once.
Hi Jignesh,
If I have selected the About Us tab in tha navigation bar then it's showing me this url:
http://localhost:8080/en_GB/web/guest/about-us?p_auth=MSNDNPg5&p_p_auth=H5g1yOdy&p_p_id=49&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&p_p_col_count=1&_49_struts_action=%2Fmy_sites%2Fview&_49_groupId=10180&_49_privateLayout=false
But I need this 'http://localhost:8080/en_GB/web/guest/home' as a home url.
Please help me regarding this.
Thanks in advance!!
---
Neetu
Jignesh Vachhani, módosítva 11 év-val korábban
RE: How to set home page url for a site?
Liferay Master Bejegyzések: 803 Csatlakozás dátuma: 2008.03.10. Legújabb bejegyzések
Did you make any changes in portal-ext.properties file ?
Neetu Mishra, módosítva 11 év-val korábban
RE: How to set home page url for a site?
Junior Member Bejegyzések: 75 Csatlakozás dátuma: 2012.05.21. Legújabb bejegyzésekJignesh Vachhani:
Did you make any changes in portal-ext.properties file ?
I have tried this:
company.default.home.url=/web/guest/home
but this is alse not working for me. Do I missing something here??
Thanks,
Neetu
Jignesh Vachhani, módosítva 11 év-val korábban
RE: How to set home page url for a site?
Liferay Master Bejegyzések: 803 Csatlakozás dátuma: 2008.03.10. Legújabb bejegyzések
Hi Nitu,
I think you were started this thread by mentioning that when you click on logo then it should go to home page.
Now you are referring something different scenario for about us page.
So if you want to point out about us page to home page then you can go to ]
manage pages >> select about use page link
and select type link to page option and point it to home page or page where you forward.
See below screenshots :
I think you were started this thread by mentioning that when you click on logo then it should go to home page.
Now you are referring something different scenario for about us page.
So if you want to point out about us page to home page then you can go to ]
manage pages >> select about use page link
and select type link to page option and point it to home page or page where you forward.
See below screenshots :
Mellékletek:
Neetu Mishra, módosítva 11 év-val korábban
RE: How to set home page url for a site?
Junior Member Bejegyzések: 75 Csatlakozás dátuma: 2012.05.21. Legújabb bejegyzésekJignesh Vachhani:
if you want to point out about us page to home page
Hi Jignesh,
This is not my requirement that about us page should point to home page. My requirement is only this that whenever user clicks on Logo then it should redirect to Home page where home page is a hidden page.
If I have selected the About Us tab in tha navigation bar then it's showing me this url:
http://localhost:8080/en_GB/web/guest/about-us?p_auth=MSNDNPg5&p_p_auth=H5g1yOdy&p_p_id=49&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&p_p_col_count=1&_49_struts_action=%2Fmy_sites%2Fview&_49_groupId=10180&_49_privateLayout=false
I have underlined the about us to show that it has the same name as the tab name. Please pardon if I was not very clear.
Thanks in advance!
Neetu Mishra, módosítva 11 év-val korábban
RE: How to set home page url for a site?
Junior Member Bejegyzések: 75 Csatlakozás dátuma: 2012.05.21. Legújabb bejegyzések
Hi Jignesh,
For now I am doing this & this working fine also but it's a cheating with the Liferay
If you have some other way then let me know, I really want to do it in some other way also
Thanks a lot Jignesh & Tejas
--
Neetu
Tejas: Just make home page visible(Remove hidden checked) and inside your theme just make modification in navigation display to not include home page in navigation bar. So in this case it will remain hidden for users. And when you click on logo it will take you to the home page.
For now I am doing this & this working fine also but it's a cheating with the Liferay
If you have some other way then let me know, I really want to do it in some other way also
Thanks a lot Jignesh & Tejas
--
Neetu
Tejas Kanani, módosítva 11 év-val korábban
RE: How to set home page url for a site?
Liferay Master Bejegyzések: 654 Csatlakozás dátuma: 2009.01.06. Legújabb bejegyzések
Hi Neetu,
I would say its customization according to our requirement rather than cheating
You are trying something that is not OOTB provided/supported. In that case you'll have to make it work as per your needs by customizing it.
As far as its working using theme customization, I don't see any harm using this. Expect I guess, your home page name(home) should remain same.
Still if you found any other better solution, please do share.
Regards,
Tejas
I would say its customization according to our requirement rather than cheating
You are trying something that is not OOTB provided/supported. In that case you'll have to make it work as per your needs by customizing it.
As far as its working using theme customization, I don't see any harm using this. Expect I guess, your home page name(home) should remain same.
Still if you found any other better solution, please do share.
Regards,
Tejas
Neetu Mishra, módosítva 11 év-val korábban
RE: How to set home page url for a site?
Junior Member Bejegyzések: 75 Csatlakozás dátuma: 2012.05.21. Legújabb bejegyzésekTejas Kanani:
I would say its customization according to our requirement rather than cheating
You are trying something that is not OOTB provided/supported. In that case you'll have to make it work as per your needs by customizing it.
Hi Tejas,
Yeah very true, I agree with you.
Thanks a lot once again!!
--
Neetu