Jahia Dev Forum > Adding custom field...

0 (0 Good)
0 (0 Bad)

Adding custom field in user

by  edinhobl »  2012/04/24 17:51

Hi!

My goal is to add some custome attributes to a user account. is this possible? and how?

greetz

  • Adding custom field in user
    2012/04/24 17:51

    edinhobl <p> Hi!</p> <p> My goal is to add some custome attributes to a user account. is this possible? and how?</p> <p> greetz</p>

  • Number of messages  11
    Registration date Apr 24, 2012
    0 (0 Good)
    0 (0 Bad)

    customize also java code

    by  edinhobl »  2012/04/24 18:45

    and an other question is: how to customize the user registration process? this means, where can I caustomize the java code because I have to fill up some special things in the attributes which has to be customized. (the controller)

  • customize also java code
    2012/04/24 18:46

    edinhobl <p> and an other question is: how to customize the user registration process? this means, where can I caustomize the java code because I have to fill up some special things in the attributes which has to be customized. (the controller)</p>

  • Number of messages  11
    Registration date Apr 24, 2012
    0 (0 Good)
    0 (0 Bad)

    jahia running out?

    by  edinhobl »  2012/04/25 16:18

    is jahia running out? we are planning to buy a licence?!

  • jahia running out?
    2012/04/25 16:18

    edinhobl <p> is jahia running out? we are planning to buy a licence?!</p>

  • Number of messages  11
    Registration date Apr 25, 2012
    0 (0 Good)
    0 (0 Bad)

    Re: Adding custom field in user

    by  theklem »  2012/04/25 16:22

    Hi!

    My goal is to add some custome attributes to a user account. is this possible? and how?

    greetz


    Hi, yes you can add custom properties by extending the user nodetype definition (simple declarations) as for any other content type you would want to customize / extend.

  • Re: Adding custom field in user
    2012/04/25 16:22

    theklem <blockquote> <p> Hi!</p> <p> My goal is to add some custome attributes to a user account. is this possible? and how?</p> <p> greetz</p> </blockquote> <br /> <p> Hi, yes you can add custom properties by extending the user nodetype definition (simple declarations) as for any other content type you would want to customize / extend.</p>

  • Number of messages  85
    Registration date Apr 25, 2012
    0 (0 Good)
    0 (0 Bad)

    Re: customize also java code

    by  cedmail »  2012/04/26 12:48

    and an other question is: how to customize the user registration process? this means, where can I caustomize the java code because I have to fill up some special things in the attributes which has to be customized. (the controller)


    Hi,

    The user registration forms and actions are defined in the module userregistration in the default sets of modules, you can customize or define your own registration module based on this example.

     

    The jnt:user object already allows for any type of properties or subnodes so you can store your own properties easily inside the user node.

    Regards

    misterCedricMailleux

    Cedric Mailleux (cedmail)

    Number of messages  11
    Registration date
    0 (0 Good)
    0 (0 Bad)

    Re: Re: customize also java code

    by  rafa »  2012/05/23 09:03

    Hi,

    How could I modify the userregistration module and the jnt:user object? Do  I need the Jahia SDK?

     

    Thank you.

  • Re: Re: customize also java code
    2012/05/23 09:03

    rafa <p> Hi,</p> <p> How could I modify the userregistration module and the jnt:user object? Do&nbsp; I need the Jahia SDK?</p> <p> &nbsp;</p> <p> Thank you.</p>

  • Number of messages  14
    Registration date May 23, 2012

    by  theklem »  2012/05/23 09:43

     

    Hi Rafa, 

    the SDK is not mandatory to do those modifications, Jahia SDK is a package that simplifies life of developpers but if you want to do small changes or just test Jahia development before adopting Jahia forever ;-) you can use the IDE of your choice or even a simple text editor, you'll juste have a bit more manual work to do and teh building process of your modules will be more complex. If youreally want to do a complete project with lot of custom development and customization, you should definitely install the SDK. At the end, you'll save a lot of time.

    My only advice for you if you decide to do your changes directly on a standard Jahia install using, let's say, a simple text editor for test purpose, is to create new files to extend the existing ones and do not change the default ones, so you 'll preserve compatibility in case of update by the Jahia team. 

    you can extend the user definition in your own module (declaring new fields/properties)

    you cancreate a second view for the registration form also, or modify the default one (modules\userregistration\jnt_userRegistration\htm\userRegistration.jsp), but creating a second view is better in terms of long term maintenance, as explained above.

     
  • 2012/05/23 09:43

    theklem <p> &nbsp;</p> <p> Hi Rafa,&nbsp;</p> <p> the SDK is not mandatory to do those modifications, Jahia SDK is a package that simplifies life of developpers but if you want to do small changes or just test Jahia development before adopting Jahia forever ;-) you can use the IDE of your choice or even a simple text editor, you&#39;ll juste have a bit more manual work to do and teh building process of your modules will be more complex. If youreally want to do a complete project with lot of custom development and customization, you should definitely install the SDK. At the end, you&#39;ll save a lot of time.</p> <p> My only advice for you if you decide to do your changes directly on a standard Jahia install using, let&#39;s say, a simple text editor for test purpose, is to create new files to extend the existing ones and do not change the default ones, so you &#39;ll preserve compatibility in case of update by the Jahia team.&nbsp;</p> <p> you can extend the user definition in your own module (declaring new fields/properties)</p> <p> you cancreate a second view for the registration form also, or modify the default one (modules\userregistration\jnt_userRegistration\htm\userRegistration.jsp), but creating a second view is better in terms of long term maintenance, as explained above.</p> <div> &nbsp;</div>

  • Number of messages  85
    Registration date May 23, 2012
    0 (0 Good)
    0 (0 Bad)

    Adding custom fields

    by  rafa »  2012/05/23 14:49

    Hi Theklem,

    I am a new user of Jahia and I just want to test Jahia development, so I am going to use a simple text editor. I just want to modify modules\userregistration\jnt_userRegistration\htm\userRegistration.jsp, but I don't know where the file is (is there a manual where I can read how to locate the jsp files?) and when I will find and modify it, what should I do after that?.

     

    Thank you.

  • Adding custom fields
    2012/05/23 14:49

    rafa <p> Hi Theklem,</p> <p> I am a new user of Jahia and I just want to test Jahia development, so I am going to use a simple text editor. I just want to modify <strong>modules\userregistration\jnt_userRegistration\htm\userRegistration.jsp</strong>, but I don&#39;t know where the file is (is there a manual where I can read how to locate the jsp files?) and when I will find and modify it, what should I do after that?.</p> <p> &nbsp;</p> <p> Thank you.</p>

  • Number of messages  14
    Registration date May 23, 2012
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page