Jump to content

Recommended Posts

Posted

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.

Posted (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 by kongondo
  • Like 6

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...