Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Ekta Vegad
disable field of control panel
20 de agosto de 2012 22:47
Respuesta

Ekta Vegad

Ranking: New Member

Mensajes: 10

Fecha de incorporación: 5 de agosto de 2012

Mensajes recientes

hello,
I have to disable one of the field like "jobtitle" of control panel while creating a new user
I don't want any user to provide jobtitle then how can I do this?

what should I need to use hook or ext?

thank you.
Tejas Kanani
RE: disable field of control panel
20 de agosto de 2012 23:54
Respuesta

Tejas Kanani

Ranking: Liferay Master

Mensajes: 655

Fecha de incorporación: 6 de enero de 2009

Mensajes recientes

Hi Ekta,

You'll have to make modification in \html\portlet\users_admin\user\details.jsp using hook.
You'll see below entry in details.jsp which is displaying job title in user account details from Control Panel. So just comment out this in overridden details.jsp in hook.
<!--<aui:input name="jobTitle" />-->


Hope this helps.

Regards,
Tejas
Amit Doshi
RE: disable field of control panel
21 de agosto de 2012 0:00
Respuesta

Amit Doshi

Ranking: Liferay Master

Mensajes: 549

Fecha de incorporación: 29 de diciembre de 2010

Mensajes recientes

Tejas Kanani:
Hi Ekta,

You'll have to make modification in \html\portlet\users_admin\user\details.jsp using hook.
You'll see below entry in details.jsp which is displaying job title in user account details from Control Panel. So just comment out this in overridden details.jsp in hook.
<!--<aui:input name="jobTitle" />-->


Hope this helps.

Regards,
Tejas


Just Adding more to Tejas Comment, It will create issue for Administrator. If Administrator want to add job title then they will also not able to add the JobTitle. I think it would be better if you put condition on it.
Tejas Kanani
RE: disable field of control panel
21 de agosto de 2012 0:15
Respuesta

Tejas Kanani

Ranking: Liferay Master

Mensajes: 655

Fecha de incorporación: 6 de enero de 2009

Mensajes recientes

Amit Doshi:

Just Adding more to Tejas Comment, It will create issue for Administrator. If Administrator want to add job title then they will also not able to add the JobTitle. I think it would be better if you put condition on it.

Well nice catch Amit. emoticon
What I've understood is(as per Ekta mentioned) while creating new user job title is not required. So the solution provided would work and when user goes to their account they can't see job title field. But yes even Admin can't see job title for any user. In that case you can use below changes. Which will allow admin to see "job title" field for every user.
1
2<c:if test="<%= permissionChecker.isOmniadmin() %>">
3    <aui:input name="jobTitle" />
4</c:if>
Ekta Vegad
RE: disable field of control panel
21 de agosto de 2012 3:01
Respuesta

Ekta Vegad

Ranking: New Member

Mensajes: 10

Fecha de incorporación: 5 de agosto de 2012

Mensajes recientes

thank you