Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Adding custom fields into RegistrationForm web part View modes: 
User avatar
Member
Member
vlatso-synqsolutions - 5/18/2010 11:12:16 AM
   
Adding custom fields into RegistrationForm web part
I am fairly new in Kentico development and my goal is to create additional fields to Registration form. I went step-by-step according the blog here:
Adding custom fields into RegistrationForm web part
but the new web part I created this way is missing User Name and Gender fields. Having registration form without User Name is basically useless. What could be the part I am missing here?

Thank for your time to answer
Vlado

User avatar
Member
Member
gavin.eggheaddesign - 5/19/2010 9:07:08 AM
   
RE:Adding custom fields into RegistrationForm web part
Hi Vlado

It appears that the document you specified related to version 3.1 of Kentico. I assume that you are using version 5?

If so have you tried the 'Custom registration form'? this webpart uses alternative forms that can be generated via "CMSSiteManager > Development > System Tables > User > Alternative forms". You could use the original 'Registration form' as a guide to setting the fields up.
Once created it can be selected in the webpart properties.

Alot easier than cloning and modifying like the old method.

Hope this helps

Thanks

Gavin

User avatar
Member
Member
vlatso-synqsolutions - 5/19/2010 12:35:59 PM
   
RE:Adding custom fields into RegistrationForm web part
Oh, thank you. This helped. I was able to fully utilize my new fields UserCity and UserCountry in registration form. Only problem I have is I cannot figure out how to use these fields in an email template. I tried {%usercity%} but it did not pick it up.

Thank you again for your effort.


Vlado

User avatar
Kentico Support
Kentico Support
kentico_radekm - 6/4/2010 3:05:43 AM
   
RE:Adding custom fields into RegistrationForm web part
Hello.

I suppose you used this macro {%usercity%} manually, not selected from Data selector in macro resolver. Unfortunately, this approach does not work for custom other, than defined fields in data selector, so if you want to return any other value, you need to use custom macros: http://devnet.kentico.com/docs/devguide/appendix_a___macro_expressions.htm

Best Regards,
Radek Macalik