Getting Started

1. Download the Recommended release and extract the zip file.

2. Reference the EditRegion.MVC.dll to to your MVC project.

3. Add EditRegion.css to your MVC project and reference it.

4. Add jquery 1.4.1 or later to your MVC project and reference it.

5. Add EditRegion.js to your MVC project and reference it.

6. Setup ASP.Net Membership

7. Reference the EditRegion.MVC namespace in your view
<%@ Import Namespace="EditRegion.MVC"%>

8. Add the following to your view and you are ready to go:
<%= Html.EditRegion("HomePageDescription").EditableForUser("Administrator") %>

Usage Samples

  • <%= Html.EditRegion("Region1").ToString() %>
  • <%= Html.EditRegion("Region1").ToString().DoNotEncode() %>
  • <%= Html.EditRegion("Region1").Label("Contact Name").EditableForUser("Administrator") %>
  • <%= Html.EditRegion("Region1").EditableForUsers(new[] John","Jim) %>
  • <%= Html.EditRegion("Region1").EditableForRole("Administrators") %>
  • <%= Html.EditRegion("Region1").EditableForRoles(new[] { "role1", "role2" }) %>

FAQ

1. Where does the content get stored?
The content gets stored in a xml file under the App_Data folder.

2. Can I store the content in the database?
Right now only the XML repository is supported. The application uses the Repository pattern and you can easily implement whatever repository you want.
Future releases may natively add support to other types of repositories.

3. How do I back up the content?
The content gets stored in a xml file under the App_Data folder. This file can be backed up.

Last edited Apr 1, 2010 at 9:31 PM by sravimohan, version 14

Comments

No comments yet.