Note: I'm not asking for any code, I'm interested in the organization techniques.
Suppose
I build a personal website, to which I want to add blog entries of
various types. For example, some entries may consist of just plain text,
some may include HTML5 video or Flash object and so on... I want the
user to be able to browse through these entries by date and different
categories (or through all categories merged together).
What would be
the most optimal way (for me and for user) of adding such content after
the website has been deployed? The entries should be categorized, but
it should also be possible to retrieve them all together, sorted by
date.
How do other MVC websites handle frequent "owner" content
adding? Adding new views to the application itself seems sadistic, but
the application should be "informed" of the new entries. Should I add
plain html files and have each entry's (file's) info (file name, date,
category, etc) stored in database, so that the application can properly
render the view with the content?
The thing is that you can code a
"submit button" to handle various things, but I don't want to give this
functionality to the website, because I'm the only one adding the
content, so I want to be able to add new entries manually without
over-complicating the adding itself (don't want to manually update the
database).
Thanks in advance!
Loading

JurePosted Oct 8, 2010, 2:07 PM
Actually, should I create a separate web app that would be known only to me (maybe with some insane url and authentication form)? If so, the app would be made specifically for submitting (or rather "registering") new blog entries to the database.
How do other websites with personal blogs handle this?
Mahesh ChandPosted Oct 8, 2010, 1:47 PM
You will need a database and that will store meta data about the blogs such as Title, keywords, category and so on. Actual files should be created in plain HTML and store on the file server. This method will reduce load on the server. Alternatively, you can store the entire blog in a database but that is too much work for the server.
So when you create a new entry, you will have to select a category, title and so on like we do on C# Corner blogs. Before that, you need to create those categories and store in the database.
Sam HobbsPosted Oct 8, 2010, 1:41 PM