Page just for logged in users <SOLVED>

5360014, modified 15 Years ago. New Member Posts: 19 Join Date: 7/20/10 Recent Posts
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
thumbnail
4733203, modified 15 Years ago. Junior Member Posts: 82 Join Date: 3/18/10 Recent Posts
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


default.landing.page.path=/group/<organization name>/<home page>  &lt;-- This page for user after sign in...

default.logout.page.path=/web/<organization name>/<welcome page>   &lt;-- This page for user after logout

</welcome></organization></home></organization>
5360014, modified 15 Years ago. New Member Posts: 19 Join Date: 7/20/10 Recent Posts
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.