Extend user info

50 views
Skip to first unread message

jvanp...@gmail.com

unread,
Dec 16, 2011, 9:40:17 AM12/16/11
to dot...@googlegroups.com
Hi,

We are working on a project where we need to store extra information to the users' additional info. Reason for this is that we have some internal Id of other systems that we want to 'connect' these user to.
So basically we need another 'facebook id', 'twitter id' etc. field, like 'Internal id'.

Is there a way to extend the user entity with additional fields?

Michael Fienen

unread,
Dec 16, 2011, 8:35:14 PM12/16/11
to dot...@googlegroups.com
Right now you need to do it with a plugin. In the Language-ext.properties file, add lines like:
user.profile.var1=Twitter ID
user.profile.var2=Facebook Page Link

I believe you can add up 25 fields like this.

There's another option that would take a little more work to implement, but you could create a structure to hold your extra data, and use the user account ID as the tie in. Ultimately, I think the goal is to have everything like user data become structured content, so you can extend it internally (like they did with hosts in 1.9 and files in 2.0).

Chris Falzone

unread,
Dec 17, 2011, 8:41:47 AM12/17/11
to dot...@googlegroups.com
Yes, at some point Users will become content types, so you could easily extend them.  Currently, IMO, Michael's second suggestion is the best way to go.  You just make a structure like User Details.  Have on the of the fields be the user id from the dotcms user, it looks like dotcms.org.XXXXX.  Then you can add the fields you need to accomplish your goal.

--
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To view this discussion on the web visit https://groups.google.com/d/msg/dotcms/-/DSd7Wia-Mh4J.

To post to this group, send email to dot...@googlegroups.com.
To unsubscribe from this group, send email to dotcms+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dotcms?hl=en.

Reply all
Reply to author
Forward
0 new messages