Forums de discussion

RE: Set default portlet in Dashboard

thumbnail
Tejas Kanani, modifié il y a 10 années.

RE: Set default portlet in Dashboard

Liferay Master Publications: 654 Date d'inscription: 06/01/09 Publications récentes
Which version of Liferay you are referring/using here ? 6.2 ?

I want to set my portlet as default when user accesses Dashboard.

You want your portlet to be placed when user access their private page ?

Check below portal properties you can specify in portal-ext.properties. In this whichever column you want your portlet to be placed, just specify your portlet in respective property value.
    
#
# Set the portlet ids for the columns specified in the layout template.
#
    default.user.private.layout.column-1=82,23,11
    default.user.private.layout.column-2=29
    default.user.private.layout.column-3=
    default.user.private.layout.column-4=



Thanks,
Tejas Kanani
thumbnail
Tejas Kanani, modifié il y a 10 années.

RE: Set default portlet in Dashboard

Liferay Master Publications: 654 Date d'inscription: 06/01/09 Publications récentes
Set below property in your portal-ext.properties and restart the server
default.user.private.layout.column-2=<your portlet name></your>

your portlet name you can get from "<portlet-name>" in your portlet's liferay-portlet.xml.

By doing this, it will put your portlet in each user's private page(dashboard) 2nd column.
It will not change the existing user's page and only reflects to new user which you'll create after this changes.

Hope this helps.

Thanks,
Tejas
mahdy ksila, modifié il y a 9 années.

RE: Set default portlet in Dashboard

New Member Envoyer: 1 Date d'inscription: 12/02/14 Publications récentes
thank you Tejas Kanani for this détails.
but i have two questions

Q1: i wrote this properties in the portal-ext.properties:

default.user.layout.template.id=1_column

default.user.private.layout.column-1=dynamicHeader
default.user.private.layout.column-2=


then i restart the server. I found that liferay detected the dynamicHeader portlet but it did not display his rendering correctly . why ?



Q2: for which reason liferay applies change only with the new users? is there a solution witch make chagements affect all existing users?
thank you very much

Pièces jointes: