You can create a property of type 'array', similar to how images and files are associated with objects (eg dmNews, look for aRelated and the images or files step of the PLP). You don't have to use an objectId / foreign object reference as in that example, a list (ie, a string) can encapsulate the user name, email address, ip, time of post, and message with a bit of sanity checking. It's not too fancy, though I hope it gives you some ideas.
Regards, Chris -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Britton, Michael (NIH/NIEHS) Sent: Tuesday, 6 December 2005 4:33 AM To: [email protected] Subject: [farcry-dev] Re: Web log custom type? I'm just not sure how I should tie in the comments. To make this custom type a clone of dmNews and to ensure it remains easy to install, how would I create the comments table without creating another custom type? -----Original Message----- From: Chris Bauer [mailto:[EMAIL PROTECTED] Sent: Friday, December 02, 2005 10:45 PM To: [email protected] Subject: [farcry-dev] Re: Web log custom type? Hi Michael, Looking at your Blog Post definition, I think that the only field not already in the dmNews type is PingURL. The Blog Link is also much like a dmLink. It may well be worth extending or cloning some of the core custom types to save some time - I've done that in the past, and found it a pretty quick process. -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Britton, Michael (NIH/NIEHS) Sent: Saturday, 3 December 2005 12:22 AM To: [email protected] Subject: [farcry-dev] Re: Web log custom type? It would allow authors to enter blog posts and have them display in standard blog format via display rules. It would include a comment management utility. Fields are so numerous I've started to wonder if I should a) break it up into distinct entries and comments custom types, or b) extend dmNews. This is a larger project than I expected, hence my reluctance to actually begin! Custom Type(s) ************************* Blog Posts 1. Entry text 2. Ping URL(s) 3. Date added 4. Date Modified 5. Entry title 6. Entry Author 7. Status 8. Expiration date 9. Objectid 10. Entry file Blog Comments 1. Date Added 2. Comment text 3. Comment author 4. Comment title 5. Comment entry id (fk) 6. Objectid Blog Links (resources) 1. Resource title 2. Resource link Display Rules ************************** Entries 1. Bulleted list 2. Detailed 3. RSS Comments 1. Bulleted list 2. Detailed Links 1. Bulleted list 2. Detailed ________________________________ From: modius (sent by Nabble.com) [mailto:[EMAIL PROTECTED] Sent: Monday, November 21, 2005 2:21 AM To: [email protected] Subject: [farcry-dev] Re: Web log custom type? Mike Britton wrote: I'm entertaining the idea of building a web log custom type. Before I do this, I want to make sure no one else has done it. Has anyone? Whats it do exactly? -- geoff http://www.daemon.com.au/ ________________________________ Sent from the FarCry - Dev <http://www.nabble.com/Web-log-custom-type--t579173c621.html#a1578742> forum at Nabble.com.
