Foren

Remove Login Portlet from Public Pages LR6.2CEGA6

thumbnail
darren rose, geändert vor 7 Jahren.

Remove Login Portlet from Public Pages LR6.2CEGA6

Regular Member Beiträge: 215 Beitrittsdatum: 04.04.15 Neueste Beiträge
Hi,

I have created public pages and added public facing portlets - I would like to remove the login portlet from public pages.

I am using Liferay6.2CEGA6

Regards
thumbnail
Samuel Kong, geändert vor 7 Jahren.

RE: Remove Login Portlet from Public Pages LR6.2CEGA6

Liferay Legend Beiträge: 1902 Beitrittsdatum: 10.03.08 Neueste Beiträge
For the Sign In portlet, click on the gear icon and select "Remove".
thumbnail
darren rose, geändert vor 7 Jahren.

RE: Remove Login Portlet from Public Pages LR6.2CEGA6

Regular Member Beiträge: 215 Beitrittsdatum: 04.04.15 Neueste Beiträge
Samuel Kong:
For the Sign In portlet, click on the gear icon and select "Remove".


Hi,

the portlet is not on my public page - I think it is automatically embedded maybe?

I have created a public page, and added one of my own portlets, which is public, does not require login, but on this public page, the login portlet appears.

thanks
thumbnail
Samuel Kong, geändert vor 7 Jahren.

RE: Remove Login Portlet from Public Pages LR6.2CEGA6

Liferay Legend Beiträge: 1902 Beitrittsdatum: 10.03.08 Neueste Beiträge
Perhaps you have the Sign In portlet embedded into your theme?

Does the Sign In portlet appear if your own portlet is not on the page? Maybe your portlet is triggering something to bring up the Sign In portlet?
thumbnail
darren rose, geändert vor 7 Jahren.

RE: Remove Login Portlet from Public Pages LR6.2CEGA6

Regular Member Beiträge: 215 Beitrittsdatum: 04.04.15 Neueste Beiträge
Samuel Kong:
Perhaps you have the Sign In portlet embedded into your theme?

Does the Sign In portlet appear if your own portlet is not on the page? Maybe your portlet is triggering something to bring up the Sign In portlet?


thanks,

I have created a custom theme, yes.

How would I check if my Theme is doing this?
thumbnail
Kailash Yadav, geändert vor 7 Jahren.

RE: Remove Login Portlet from Public Pages LR6.2CEGA6

Regular Member Beiträge: 211 Beitrittsdatum: 18.10.11 Neueste Beiträge
darren rose:
Samuel Kong:
Perhaps you have the Sign In portlet embedded into your theme?

Does the Sign In portlet appear if your own portlet is not on the page? Maybe your portlet is triggering something to bring up the Sign In portlet?


thanks,

I have created a custom theme, yes.

How would I check if my Theme is doing this?


As I know, you need to do two things :
Remove sign in link from theme (portal_normal.vm or portal_normal.ftl, depend on your theme type) see this line :
https://github.com/liferay/liferay-portal/blob/6.2.x/portal-web/docroot/html/themes/_unstyled/templates/portal_normal.vm#L46

And you also need to remove login portlet (58) from portlet.add.default.resource.check.whitelist in portal-ext.properties. If you add any portlet in portlet.add.default.resource.check.whitelist property, a portlet link can be created without adding portlet on page.
thumbnail
Samuel Kong, geändert vor 7 Jahren.

RE: Remove Login Portlet from Public Pages LR6.2CEGA6

Liferay Legend Beiträge: 1902 Beitrittsdatum: 10.03.08 Neueste Beiträge