Here are a couple ideas:
1) For each entry make a collection that contains an entry.html file for the entry and a comment_XX.html (where XX is a number) file for each comment. When a user views the collection you'll need to dynamically pull all of the html files together to display.
2) Similar to 1 but with a single file for all the comments. When someone adds a comment you just update that file. This way you wouldn't have to dynamically build the page, but a user would have to go to a separate page to view/add comments.
3) Store everything in a single file. When someone adds a comment you just overwrite the file. You could take advantage of Slide's versioning features so that you can rollback if someone posts an inapproriate comment.
-James
Irfandhy Franciscus wrote:
Hi,
I am currently trying to find out how to use slide to manage my online files. Basically I am generating files for my blog entries.
Example :
Day 1:
Today I make a new entry, lets call it "Entry for Day 1" and this new entry is saved in a html file call entry01.html.
The html file looks like something like this :
Hello My first Entry
Comment:
none
Day 2:
Somebody make a post a comment on "Entry for Day 1", so now entry01.html would be something like this:
Hello My first Entry
Comment:
1. First Comment
So I generate a new file called entry01_01.html that will contains the above entry with the new comment. So now I will direct my blog readers to entry01_01.html to read the blog entry.
Now my problem is that I have entry01.html in my file sytem that I would like to delete after entry01_01.html is generated. But I am a bit concern about concurreny issue E.g: What if one of my reader is actually about to open entry01.html and it is being deleted cause entry01_01.html is generated, so I do not want to "immediately" delete entry01.html after entry01_01.html is generated.
I am hoping that I can somehow handle this by using slide. I have been reading the wikis, tutorial, but I am kinda lost right now.
Perhaps any of you guys can point me to some good resources, or any advice will be much appreaciated.
Regards, Irfandhy Franciscus
So I want to use Slide to handle this concurrency issue.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
