RE: Need to display multiple sites below Liferaysite

Prabakar Duraisamy, modified 5 Years ago. New Member Posts: 11 Join Date: 1/27/20 Recent Posts
Hello,We are working on a migrating project and migrating from Liferay6.1 to Liferay 7.1.3 Using Wildfly11 Server.
In 7.1 , Instead of going to Control Panel->Sites->Sites and access sites,is there a way, we can list all the sites below the Lifeyray site. 
Thanks
Prabakar
thumbnail
Christoph Rabel, modified 5 Years ago. Liferay Legend Posts: 1555 Join Date: 9/24/09 Recent Posts
Where/How do you want to show it?
You can e.g. use the API to iterate through the list of groups (sites are groups). Something like this:
https://liferay.dev/forums/-/message_boards/message/28909357
Prabakar Duraisamy, modified 5 Years ago. New Member Posts: 11 Join Date: 1/27/20 Recent Posts
Please refer the attached screenshot. We would like to add list of sites to the Product menu so that user can access the sites easily instead of going around Control Panel. Here we could see only one site namely Liferay.  In that Place, we want to list few more sites. How could we achieve this? 
thumbnail
Christoph Rabel, modified 5 Years ago. Liferay Legend Posts: 1555 Join Date: 9/24/09 Recent Posts
In general you would need to customize the product menu. The code in the link above shows you how to get the sites in general.
https://help.liferay.com/hc/en-us/articles/360018167671-Customizing-the-Product-Menu
I am not sure if it is really easy to add multiple entries in the product menu, that's not how it is build. You could easily add a component that shows the sites in the right panel when clicked. Maybe it is easier to add the menu you want to the top.
https://help.liferay.com/hc/en-us/articles/360017888812-Creating-Control-Menu-Entries
I am not sure what's possible here, you will probably have to read the documentation and experiment yourself a bit.
thumbnail
Mohammed Yasin, modified 5 Years ago. Liferay Master Posts: 593 Join Date: 8/8/14 Recent Posts
Hi ,If  your  only looking  for listing and navigating of sites, then one more option is you can use "Site  directory" or "My site"  portlet