Vue combinée Vue Plate Arborescence
Sujets [ Précédent | Suivant ]
toggle
Karthik V S
Add new field in create_account.jsp through Hook in Liferay 6.1
15 septembre 2012 03:32
Réponse

Karthik V S

Rang: Regular Member

Publications: 103

Date d'inscription: 21 décembre 2011

Publications Récentes

Hi,

I want to add new custom field in create_account.jsp inbuilt portlet. I added custom field through Control Panel. I want that newly created custom portlet in create_account.jsp page. I was thinking of creating new row through AUI tage in create_account.jsp page, but I am not able to get the class related to that.

Help is appreciated.

Thanks in Advance.
Hitoshi Ozawa
RE: Add new field in create_account.jsp through Hook in Liferay 6.1
15 septembre 2012 18:21
Réponse

Hitoshi Ozawa

Rang: Liferay Legend

Publications: 7949

Date d'inscription: 23 mars 2010

Publications Récentes

Custom field corresponds to Expando classes. Do a search on Expando to find classes and information on using it.
Paul Butenko
RE: Add new field in create_account.jsp through Hook in Liferay 6.1
18 septembre 2012 01:40
Réponse

Paul Butenko

Rang: Junior Member

Publications: 38

Date d'inscription: 1 juillet 2010

Publications Récentes

Hi,
check this post it is describes how to extend registration page.
BR
Mazhar Alam
RE: Add new field in create_account.jsp through Hook in Liferay 6.1
18 septembre 2012 02:22
Réponse

Mazhar Alam

Rang: Regular Member

Publications: 201

Date d'inscription: 25 novembre 2011

Publications Récentes

ITs better to create a hook for that..in which you can add your custom fields in your jsp page..
..
Karthik V S
RE: Add new field in create_account.jsp through Hook in Liferay 6.1
18 septembre 2012 07:42
Réponse

Karthik V S

Rang: Regular Member

Publications: 103

Date d'inscription: 21 décembre 2011

Publications Récentes

The post link is not opening at all. can you suggest some alternative solution for that.

Thanks and Regards
Karthik V S
RE: Add new field in create_account.jsp through Hook in Liferay 6.1
18 septembre 2012 08:03
Réponse

Karthik V S

Rang: Regular Member

Publications: 103

Date d'inscription: 21 décembre 2011

Publications Récentes

Hi

Thanks for the information, but can I know where exactly the Expando classes in Hook.
kaleem ansari
RE: Add new field in create_account.jsp through Hook in Liferay 6.1
16 mai 2013 21:19
Réponse

kaleem ansari

Rang: New Member

Publications: 21

Date d'inscription: 23 mars 2013

Publications Récentes

i seen the post and i did same but unable tto store mobile number field value in database. can u explain me the where should i find the extra added field data base


2.in this he did by using ext-plugin ,but i want to use hook can u suggest the exact example.
akaram siddiqui
RE: Add new field in create_account.jsp through Hook in Liferay 6.1
16 mai 2013 23:59
Réponse

akaram siddiqui

Rang: Junior Member

Publications: 44

Date d'inscription: 15 mai 2013

Publications Récentes

add custom attribute in create_account.jsp page


Step .1 login to liferay =>go to the control panel =>go to the portal=>click on custom field =>click on user then click on add custom field and fill in billow key

user_joining and in Type select Date click on save button

Now click on action button right side and give permission for guest tick on update and view check box.

Step .2 coppy create_account.jsp from source folder of your liferay and put it in your hook which you have created for
customize the page means put the following code billow the </aui:fieldset>


the code is :


<liferay-ui:custom-attribute-list

className="com.liferay.portal.model.User"

classPK="<%= 01 %>"

editable="<%= true %>"

label="<%= true %>"
/>
now ant build your create_account.jsp page and go to the create_account page through liferay login page refresh your page you will see your custom attribute field.
Pradip A Bhatt
RE: Add new field in create_account.jsp through Hook in Liferay 6.1
27 février 2014 21:11
Réponse

Pradip A Bhatt

Rang: Junior Member

Publications: 51

Date d'inscription: 29 janvier 2013

Publications Récentes

Hello All,
I am using Liferay 6.1 CE version. I added my custom attribute in User entity from control panel. I want to add this my custom field in create_account.jsp hook page. I added like this way.

<div class="exp-ctrl-holder">
<liferay-ui:custom-attribute className="<%=User.class.getName()%>"
classPK="<%=0%>" editable="<%=true%>" label="<%=true%>"
name="user-default-group-name" />

After that i am trying to getting this value in UserLocalService hook class which extends UserLocalServiceWrapper class - (hook). I find each value from this but can not able to get my custom field value.

I am trying to get custom field value like this.

String defaultGroup = (String) User.getExpandoBridge().getAttribute("defaultGroupName");
log.info("Default Group Name :" + defaultGroup);

But I am getting null value or default value which I set at the time of adding custom attribute. I can not find my entered value from jsp page.

Please help me.

Regards :
Pradip Bhatt
pradip.bhatt@aspiresoftware.in
Mike S
RE: Add new field in create_account.jsp through Hook in Liferay 6.1
4 juin 2015 02:42
Réponse

Mike S

Rang: New Member

Publications: 13

Date d'inscription: 10 mai 2015

Publications Récentes

hello ,
i am new to liferay i am creating a hook to modify the create account jsp file . i already have created a mobile nos filed in custom field section and able to see it also in create account form .

can anyone tell me how to add validation to mobile field.
Mike S
RE: Add new field in create_account.jsp through Hook in Liferay 6.1
11 juin 2015 21:38
Réponse

Mike S

Rang: New Member

Publications: 13

Date d'inscription: 10 mai 2015

Publications Récentes

Manav Sharma:
hello ,
i am new to liferay i am creating a hook to modify the create account jsp file . i already have created a mobile nos filed in custom field section and able to see it also in create account form .

can anyone tell me how to add validation to mobile field.



i used jqx validator for providing validation to custom fields and it worked.