I want to know whether the below scenario is possible for customizing the share login page:
I want to have site name dropdown when user hits login page. for e.g in current login page we have username and password and I want to have the assigned site name dropdown populated ones user enters username and password(before clicking on login button).
You can override the Share login page - see the documentation. As for adding the user's share sites, you won't know which sites the user belongs to until after they have logged in. I suspect you will have to use the API to log the user in & then get a list back of the user's sites, & then populate a dropdown of available sites. Not a trivial task.
Digital Community Manager, Alfresco Software. Problem solved? Click Accept as Solution!
"1) Can i customize login page ...so that when user selects site name ..it directly redirects to the respective site dashboard and only that site cotent is available for him to view.
2) or else i want to add one custom page after login , which prompts user to select the available site for him and redirects it to particular site dashboard."
Based on above statements- what i understood is that, you want user to login by selecting a site and when they are logged in they go to the selected site directly. If this understanding is correct, i could think of these approaches:
- Create a custom webscript/restapi which returns (as guest user) the list of all available sites (remember, you cannot determine only available sites to a particular user unless you know who is the target user) Note that, if you are concerned about showing the site details to users without knowing who they are, you should consider going with different approach or approach 2. You need to create this custom webscript/restapi, because any OOTB rest apis wouldn't return unless you provide credentials/token. That's why you need a webscript/restapi which returns as guest user.
- Disable all links so user can not find other sites like you mentioned in your use case. Controlling the site search will be tricky though. I would suggest not to disable link to find sites, which allows the user to go to a different site without logging out. You can, however update the site search to return only sites available to the logged in user where user is a member of those sites.
From 5.1x version onwards user can set their default site dashboard as well. Refer this doc if you want to utilize this option without doing a lot of customizations: