Interesting Collaboration System Issues
Interesting Collaboration System Issues
For the past few months we've been working to develop a special collaboration system for news which allows our client to include captions when they post images to the news story. In our initial release of this collab system, we discovered a problem. In order to add captions to photos, you had to first upload them and commit the post. The reason for this is that when you create a new post, there is no storage location until you hit the editSave method. Our solution allows the user to preview the images which uploads them and then shows the photos to the user allowing them to add captions, etc. If no storage location is present, however, the photos don't get uploaded. Here's how it breaks down: When www_editSave is called, it calls the superclass method which adds a new revision, copying all the images into a new storage location and then setting the new storageId as the storageId value for the new revision of the post. I mistakenly thought that I would be able to get the storageId of the new revision in the www_editSave method. This is not the case though. After the superclass www_editSave method returns, you actually are returned to your original state which means I was still getting the storageId of the current revision and not the new. This explained the behavior I was seeing. Whenever I updated the data, the meta data was simply being updated for the current storage location. After the commit, the new storage location was being refrenced and since none of the meta data was being updated for it, it seemed to have disappeared.
Re: Interesting Collaboration System Issues·
We have been using collaboration for some time to publish news, cartoos, daily jokes etc. It is nice to see that you are taking more steps to make this even better for this kind of thing. Ehab Heikal www.elmotaheda.com , www.mashy.com Quote: An eye for an Eye only helps make the whole world blind Gandhi
Re: Interesting Collaboration System Issues·
I thought I would share some of the issues we have when using collaboration to publish a high volume news site. We publish on avarage 100 news per day divided in 8 collaboration systems where 3 get the most news. So we are high volume. Please if you read this tell me, since I believe my experience here is relevant to what you are planning to do. If i do not hear from you I will try to contact you directly about this if it is ok. 1-RSS The rss from parent does not enable setting a limit on the number of rss items, so the rss of collaboration show all, this takes down an 8 core server if published to the public. we disabled it and used other means to publish the RSS. Most news sites limit RSS to 10 or 5 news items on the feed. 2-mobile news It is very important to be able to enter the news only once and be able to have a mobile version of the news. Unfortunatly the template overrides in shortcuts work for most of the collaboration but not for the post itself since I think a post is treated internally as a separate asset. Entering news twice is really not an option in any modern computer system :) Also if this if fixed the post/news page should be able to display the thumb instead of the normal picture ( better yet the ability to have custom sized thumbs )
3-Latest news. In most sites you have a latest news that aggregates news from more than one category.
4-Headline news As above but not based on latest but on most important.
For 3 and 4 note that we use collaboration with manual changes of what is first, This skews the timeline of which news came first just a bit, Older news will go in near order to the back, but more important news will linger behind other less important news but not by a lot.
Ehab Heikal www.elmotaheda.com , www.mashy.com Quote: An eye for an Eye only helps make the whole world blind Gandhi |

