I am using Liferay 6.2 and I am creating one Portal Instance say abc.com, I have done necessary config to access the second URL abc.com and I login with test#abc.com which logs in to the abc instance where I can add the portets to page & create page.
But I do not see or have access to control panel, Site settings in abc.com Portal Instance.
Please let me know how this user test#abc.com can have access to admin options ? Control Panel for managing sites and content in abc portal instance ?
How users, groups, role can be controlled for this portal instance ? as the users of abc.com does not display in default liferay.com instance control panel ?
I need to configure LDAP for abc.com instance I need access to control panel how this can be done ?
Can anyone please share the experience of using Portal Instance and how the administration can be done for managing above scenarios in new Instances ?
Appreciate your inputs on above.
Thanks !
It's just like in the default instance that you always have when running Liferay: The user you login with must have the proper permissions, e.g. you need to assign the "Administrator" role, then the rest of your questions will automatically be solved.
The only section you won't see in secondary portal instances is the "Server" section in Control Panel - all the other sections are there.
Related
As a programmer, I would like to create Role and Permissions in Liferay and assign it to a User and a Site template or site without the intervention of Liferay Admin.
Please help me with the code if anybody has already done it. I am using Liferay 6.1
Liferay Provides set of api for doing create user , roles etc . You could go through below api which will create user and role also assign respected association between user, site and roles
https://docs.liferay.com/portal/6.1/javadocs/com/liferay/portal/service/UserLocalServiceUtil.html
https://docs.liferay.com/portal/6.1/javadocs/com/liferay/portal/service/RoleLocalServiceUtil.html
Thanks
What is the code to configure these configurations from the coding site in liferay java? Without going through the settings in admin's panel?
To configure restrictions using code. At MAIN MENU- CONFIGURATION from the admin site. But how to configure each permission for owner, portal content reviewer, portal user and others for add to page, configuration, view and permissions using code either in controller or xml?
For example to restrict view, certain page, or others.
Thanks.
I have created a custom Regular Role and I have inserted it inside portlet.xml of so-portlet(security-role-ref element) and I have also mapped it with the respective role in liferay-portlet.xml.
However, when a user owns only this custom Regular Role, an error message is displayed "You do not have the roles required to access this portlet".
It is also strange that this happens only in user's personal site, on any other site user is able to view the specific portlet.
Does anyone has any idea about this?
Since you have a Custom Regular Role for your App, you should edit the default Role Permissions
log as an admin
Go to Control Panel, Roles,
Find your Role, and from the Actions menu on the right side, pick Define Permissions
From the left menu, find your application
Edit your permissions. Make sure to have the 'View' action granted for your Role. You can additionally, allow it for all sites (default), or you can just select the 'User Personal Site'
Now, if you want to make an exception for a specific portlet instance (that's what I meant in my question, in the comments) you can:
Log as Admin
Navigate to the specific Page where your portlet instance is added.
Enable Edit Controls, and edit your portlet (mini menu on the upper right side, with the wrench icon)
Pick permissions and have your Role allowed to view the portlet
The Personal Site is a Private Site if I remember well, so i think your user is not a site member, necessary condition to view the private pages.
Is there some configuration where we can provide default Permissions for a Site page for a particular Role?
Similar to the functionality we have in Control Panel → Portal Settings → Users, here we can specify which Roles, Sites or UserGroups can be assigned to the User when the User is created.
To elaborate:
I have created a new Role say, Champion Role
Now I am creating public pages (Page1, Page2 etc) or private pages in a Site, say Site01.
I require that when the Page1 was created in Site01 then the VIEW & UPDATE permission should be automatically assigned to Champion Role.
I know this is possible through a listener hook by having a LayoutListener and overriding various methods, but I am looking for another easier or cleaner solution.
Thanks
I think you could and should do it by using the Liferay's Permission management system, and you should avoid extending code to do your task
Go to Control Panel → Portal → Roles → ChampionRole → Define Permissions → Sites, then
go to the Site actions subgroup and check the VIEW and UPDATE, then use the Limit Scope link, where you'll select the site:
After that, all you have to do is give this role to the right people, e.g like directly applying the Champion Role as a personal role to specific users, by the control panel
I'm currently building a website for a company, that will for the moment contain 3-5 static pages (i.e, just content). User registration may be added in time to come.
Now, I've been reading through the Liferay docs, forums and wiki, and I'm still pretty unclear on the approach to take in designing this website:
If I were to model my company Website as an organization in Liferay where I would have the public pages of the Website, what would be the purpose of the default guest page? (/web/gues/home)? Do I remove this and redirect the guest to my organization? If so, how do I do this?
Who is the creator of an organization in the real world? Is this site administrator? or the person responsible for adding content?
Who is the creator of an organization in Liferay? Is this the administrator to Liferay (i.e the default Test user)?
The best way to do is is to put your pages in the Public Pages of your organization and setup a virtual host (see Manage Pages -> Virtual Hosts in the Control Panel) for those pages. This way, www.my-homepage.com will redirect to the public pages of your organization. You should of course be owner of the domain and link the domain to the IP address of the server the website runs on.
In Liferay, by default only users with the role of Administrator can add organizations. For managing content you should setup other roles. Create f.e. a Content Editor role and add permissions for the Web Content portlet (Create Content, Approve, Edit, Delete, View in Control Panel). This also answered your third question.
Add this lines of code in your portal-ext.properties
mail.session.mail.pop3.host=pop.gmail.com
mail.session.mail.pop3.password=PASSWORD
mail.session.mail.pop3.port=110
mail.session.mail.pop3.user=USER
mail.session.mail.imap.host=imap.gmail.com
mail.session.mail.imap.port=993
mail.session.mail.store.protocol=imap
mail.session.mail.transport.protocol=smtp
mail.session.mail.smtp.host=smtp.gmail.com
mail.session.mail.smtp.password=PASSWD
mail.session.mail.smtp.user=USERID#gmail.com
mail.session.mail.smtp.port=465
mail.session.mail.smtp.auth=true
mail.session.mail.smtp.starttls.enable=true
mail.session.mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
Please user your password in place of PASSWD and your gmail user id in place of USERID.
By three different ways we can configure mail server in Liferay. I am using Liferay 6.2 and initially I got an error that could not connect to smtp host localhost port 25 in liferay by using different code. So I used above code and my mail server is configured properly and my application is able to send mail to the user in forgot password case.
And please see this link. This link help me to solve the issue.
https://www.permeance.com.au/web/tim.telcik/home/-/blogs/how-do-i-configure-liferay-portal-to-use-google-mail
Thanks
asif aftab