advertisement

Build a news or blog site in five minutes with CliqueSite® NewsBlog

posted by Jeff
Discuss this article   Printer friendly

This simple ASP.NET v2.0 application allows the site owner to post news or blog entries, categorize them, syndicate them and allow for comments.

CliqueSite® NewsBlog is a simple ASP.NET v2.0 application that allows the site owner to post news or blog entries, categorize them, syndicate them and allow for comments. The design goal for this application was to make it "hackable" and easy to maintain and alter.

You can install and begin using NewsBlog in about five minutes or so, but you'll need the following on your Web server:

To start, download the zip file from http://newsblog.cliquesite.com and extract the folder from inside it.

Find the web.config file and open it in Notepad, or Visual Studio 2005, or Visual Web Developer 2005. There are several changes we need to make here. First of all, if you don't have SQL Server Express installed on the server, and intend to use a SQL database elsewhere, edit the connection string to reflect this.

If you're using an external SQL Server database, run the included SQL script included in the /App_data folder of the zip with Query Analyzer. This will setup the database tables, indexes and such to get you rolling.

Next, work through the few appSettings key/value pairs. They're simple enough, but in case you're wondering:

Finally, you'll need to edit the user name and password in the authentication/forms/credentials section. You can add as many of these user elements as you'd like.

Now you're ready to upload the files. If you're using your own SQL Server instance, you don't need to upload the /App_data folder. Be sure to upload the files into the root of an IIS application. If you're not sure what that means, check with your Web host or Google it. Once uploaded, and your database setup and connection string are correct, the application should just work.

If you click the login link in the top navigation, you can login using the name and password you setup in web.config. That will take you to the admin area, which has just two pages. If you'd like to set up categories for your content, you can do that using the simple UI. Each category will have its own RSS feed on the RSS page. Then you can begin adding content. The plain text window accepts HTML. If you're clever, you can add something like FreeTextBox to it instead. That's all there is to it!

The "about" and "contact" pages are intentionally blank, so if you'd like to add static content to those, or some spot of code to do something, feel free. If not, you can remove the links right out of the Main.master page template.

If you need more help, we have a forum dedicated to NewsBlog right here! Have fun!