tester Posted August 21, 2013 Share Posted August 21, 2013 Hey Community,i'm new with processwire, hope you can help me to find solutions.is there a way extending the user (create new table with new fileds in db) with api.auto create id while creating new user.thx for answers. Link to comment Share on other sites More sharing options...
kongondo Posted August 21, 2013 Share Posted August 21, 2013 (edited) Hi Tester. Welcome to PW and the forums. Not sure what you want to achieve in the end but users in PW are also stored as pages. Hence, they come with a template. You can add as many fields as you like to the user template to store your data and retrieve and display these like any other field using your template file - hence extending "user". To view the "user" template, go to Setup->Template. Then under filters panel, under show system templates, select yes. Scroll down to the now revealed "system" templates. Select the "user" template and you are ready to start adding your custom fields to it . If you wish, you can then hide the system templates when you are done... About IDs, users are automatically assigned IDs when you create them Edited for clarity... Edited August 21, 2013 by kongondo 6 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now