Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Adding user fields + Register function + Admin area SLOW


Go to End


18 Posts   6552 Views

Avatar
Piklets

Community Member, 36 Posts

17 October 2008 at 4:11pm

At the moment I'm not quite sure how the relations with the databases work. (bumping)

For my system I need three parts to it.

First part - normal user, normal privileges:
The normal user submits a form telling more about themselves. Each normal user can only have one table row. If they submit it twice it updates the previous submission.

Second part - stage two user, a bit more privileges:
The stage two users give their opinion about a single user, and they can submit only one submission per user. If they submit twice on the same user it just updates the row submitted before.

Third part - stage three user, same privileges as stage two:
The stage three users are another group to give submissions about a user. Same as stage two, they can only submit one for each user, updating if they submit twice.

Avatar
Piklets

Community Member, 36 Posts

17 October 2008 at 5:31pm

Edited: 17/10/2008 5:32pm

Got it working! There's always more than one way to do things!

I made it check for existance first before updating the field.
If it existed, then it updated.

Woot!

If anyone wants any sort of thing like this, ask and I can show you how.

Go to Top