This project is read-only.

RazorC Folder Structure

 

RazorC uses the ASP.NET WebPages framework which does not have a strict file folder structure so you can create any folder you like, however RazorC has a decent structure so you can easily manage your website.

image3.png

This is the default structure, I will talk about each folder and its purpose.

 

Account

This is where your login form is, note this is the default location ASP.NET will redirect users if they access a page which requires authentication. RazorC uses a simple plain text authentication and not the WebSecurity Class.

App_Code

This is a secure ASP.NET folder, it contains all classes and functions and helpers for your website.

App_Data

This is a secure ASP.NET folder, this stores your SQL Server CE database. (NOTE: This folder requires read / write permissions when you publish your website!).

bin

This contains assemblies (DLL files).

rcAddons

This folder contains all addons you have added to your website, place addons in this folder!

rcAdmin

This is the backend administration section for your website.

rcLayouts

This is where you store your website layouts.

rcTemplates

This is where you store templates, (Widgets). By default razorC contains a few templates which are:

  • _rcHTML.cshtml – Use this template to render out HTML content.
  • _rcSideBar.cshtml – Use this template for sidebar content (The data will appear in <li> tags).
  • _rcSlogan.cshtml – Use this for your website title.
  • _rcStandard.cshtml – This is what all pages are based on, this will render your main content.

tiny_mce

Pretty easy to guess this is just an open-source HTML editor so you can edit and create pages.

upfiles

This is where you should upload files if you wish to make them public. (NOTE: This folder requires read / write permissions when you publish your website!)

_AppStart.cshtml

This is a required file, it is a special file in ASP.NET WebPages it stores settings for database connection, email settings and routing. DO NOT DELETE OR RENAME IT.

Default.cshtml

This file is used to retrieve the pages from the database, by default when you start your website it looks for a default page called “default” in the database. if not data is returned you are redirected to the error page.

rcError.cshtml

By default if an error occurs users are redirected here.

Web.Config

This is used in nearly all ASP.NET websites and is used to store your website settings (like custom error pages, URL rewriting etc)

 

If you wish to learn more about ASP.NET WebPages please see this tutorials: http://www.thecodingguys.net/tutorials/asp/webpages

Last edited Jul 31, 2013 at 3:14 AM by RazorKnight, version 4

Comments

No comments yet.