Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Page just for logged in users <SOLVED>
Hello everybody,
We are facing a problem and maybe you can help us.
We want to make a page with some content, and we want the content of this page to be just visble for logged in users if we are not logged in in this page we must have the sign in portlet to log in to the portal.
For example: We create a page called ContentForUsers, if i'm signed to the portal I will see some content and if i'm not signed I will just see the "sign in" portlet.
Is there any solution? Is there something provided by Liferay to perform this issue?
Tanks a lot
We are facing a problem and maybe you can help us.
We want to make a page with some content, and we want the content of this page to be just visble for logged in users if we are not logged in in this page we must have the sign in portlet to log in to the portal.
For example: We create a page called ContentForUsers, if i'm signed to the portal I will see some content and if i'm not signed I will just see the "sign in" portlet.
Is there any solution? Is there something provided by Liferay to perform this issue?
Tanks a lot
use public and private page ..
for example..when u created one organization at control pane., u will be provided public and private page..just add login portlet at public page..and all other content at private page...
and also..at portal-ext.properties ..u need to add this code
for example..when u created one organization at control pane., u will be provided public and private page..just add login portlet at public page..and all other content at private page...
and also..at portal-ext.properties ..u need to add this code
default.landing.page.path=/group/<organization name>/<home page> <-- This page for user after sign in...
default.logout.page.path=/web/<organization name>/<welcome page> <-- This page for user after logout
</welcome></organization></home></organization>
Tanks a lot for your answer.
Finally we have done it using page permissions and allowing the pages to be viewed just for users but not for guests. This solution is enough for us by the moment.
Now we have to build this pages and give them the permissions from a hook, it wont be difficult I hope.
Thaks again for your fast answers.
Finally we have done it using page permissions and allowing the pages to be viewed just for users but not for guests. This solution is enough for us by the moment.
Now we have to build this pages and give them the permissions from a hook, it wont be difficult I hope.
Thaks again for your fast answers.
Community
Company
Feedback