How to create a custom data type?

Permalink
Hi, this was last asked in 2009/2010, so I thought I'd see what the current consensus is: How would one add a custom object/model/data-type to a concrete5 site?

We're making a social site for dog owners. So, beside creating connections between users and displaying users, we want to create connections between dogs and display dogs as well. We want dogs to have attributes such as "breed". And breed might best be represented by a taxonomy.

Just throwing this out here to see how we'd do this in concrete5 if we did.

Thanks.

dogweather
 
moosh replied on at Permalink Reply
moosh
Hi,

You can add dogs in an user group called "dogs".

best,
dogweather replied on at Permalink Reply
dogweather
Interesting. So, going with your idea, a dog would simply be a user in this special group, say, "Dogs".

And so ... for a user to add their dog to the system, they'd need to be able to create a new user object. Has that been done before?
moosh replied on at Permalink Reply
moosh
Yes,

And add a custom attributes for dogs user object which contain his user owner id. Thus, you will can get all dogs for a specific owner with.

Best,
navteca replied on at Permalink Reply
I am tring to solve a similar design problem.

If you make dog, users, wouldnt each dog have a login username/password?

You would end up with a lot of credentials that never get use, i would be concern in terms of security about this approach.