Calling all CS experts - New table or extend Post class?

rated by 0 users
This post has 1 Reply | 2 Followers

Not Ranked
Posts 1
Points 20
voidFoo Posted: Mon, Aug 13 2007 8:05 PM

Hello,

I did not see any immediately applicable answer to this during a search, so apologies if this has been covered ad nauseum. 

I have an application that will extend CS 2007 to host an application.  This application requires us to assosciate some xml data with a user profile, such that the xml data is available whenever a user views their profile information, however this information should not be viewed directly (i.e. we will create a summary view/graph for the user) nor should it be viewable in a public forum, blog or gallery.

For this instance, is it preferrable to extend the Post class and attach the custom xml data (e.g. CustomPost and new ApplicationType), thereby adding the data to the cs_Posts table?  Or would it be more useful to create a custom table within the CS 2007 database and associate it with the cs_Users table?

 Or perhaps there is an easier solution, by just using ForumPost and making the post+attachment private?

 All thoughts and help greatly appreciated!

 Regards

Top 10 Contributor
Posts 3,424
Points 65,610
CS Developers
Ben Tiedt replied on Wed, Aug 15 2007 11:17 AM

If you don't need to access this data in the database, you can save the data in an extended attribute on the User object. (this requires no core changes)

Ben Tiedt's Blog

  • | Post Points: 5
Page 1 of 1 (2 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com