1 Reply Latest reply on Apr 11, 2012 11:16 AM by Ron @ SFU

    how to add new fields in cq5 user table in cq5 ?

    Amitdstar Level 1

      hello Everyone,

       

      I really need y ours help.

       

      i am creating a registration form and all data will be stored in user table of cq5, which looks like as below:-

       

      registration.bmp

      now i want to add one new fields in this table so that when i add value to this fields, value should be shown here in this table.

       

      please help me how to do this.

      as when i am adding new fields in my registration form , that value i cant not see here in this table. may be there is some mapping is there .

       

      thanks

        • 1. Re: how to add new fields in cq5 user table in cq5 ?
          Ron @ SFU Level 1

          You will need add this to the /var/clientlibs/libs/cq/security/widgets.js and add the field under the 'CQ.security.UserProperties'.  For example, if you wanted to add a field to show the 'Middle Name' under the 'First Name' field, you can try adding the following:

           

                      "items":[{

                              "xtype":"textfield",

                              "fieldLabel":CQ.I18n.getMessage("Login"),

                              "anchor":"100%",

                              "disabled":true,

                              "allowBlank":false,

                              "name":"rep:userId"

                          },{

                              "xtype":"textfield",

                              "fieldLabel":CQ.I18n.getMessage("First Name"),

                              "anchor":"100%",

                              "name":"givenName"

                          },{

                              "xtype":"textfield",

                              "fieldLabel":CQ.I18n.getMessage("Middle Name"),

                              "anchor":"100%",

                              "name":"middleName",

                          },{

                              "xtype":"textfield",

                              "fieldLabel":CQ.I18n.getMessage("Last Name"),

                              "anchor":"100%",

                              "name":"familyName",

                              "allowBlank":false

                          },{

           

           

          Hope this helps.

          -Ron