locked
Integrating CMS into an existing ASP.NET site RRS feed

  • Question

  • User-1640592868 posted

    Hi,

    I have developed an ASP.NET Web Application and am now looking in to integrating a CMS into it. Is there any open source tool that allows me to this?

    I have many existing pages, with content in them, and want to make it possible to simply have some sort of plugin that can be used to add or edit the content - I am willing to convert the existing static content into the CMS database but want to keep the other functionality I have developed (A custom authorisation framework, a site layout and styling using master pages etc).

    Thanks in advance for any advice

    Thursday, January 20, 2011 10:51 AM

Answers

  • User-862012937 posted

    I dont know of a "tool" to do this for you. I have had to do the same thing of sites before. It takes some time if you have a of of existing pages but it is simply copy/pasting once you build the script once. 

    Where your content is, replace it with asp:label

    Hide a "Edit button" that is only vieawable to admin's

    Edit button opens a hidden asp:panel containing a text editor and submit button


    Code behind loads the content from the database on page_load and places it in asp:label text


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, January 23, 2011 3:08 PM
  • User-1308667499 posted

    You can use fckEditor to edit the existing content and add new content.

    It is freely available:

    http://docs.cksource.com/FCKeditor_2.x/Developers_Guide/Integration/ASP.NET

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, January 24, 2011 4:13 PM
  • User1006193418 posted

    Hi,

    have you tried on Orchard Project. It is just finally released:

    http://orchard.codeplex.com/

    http://www.orchardproject.net/

    Best Regards,
    Shengqing Yang

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, January 25, 2011 3:19 AM

All replies

  • User-862012937 posted

    I dont know of a "tool" to do this for you. I have had to do the same thing of sites before. It takes some time if you have a of of existing pages but it is simply copy/pasting once you build the script once. 

    Where your content is, replace it with asp:label

    Hide a "Edit button" that is only vieawable to admin's

    Edit button opens a hidden asp:panel containing a text editor and submit button


    Code behind loads the content from the database on page_load and places it in asp:label text


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, January 23, 2011 3:08 PM
  • User-1308667499 posted

    You can use fckEditor to edit the existing content and add new content.

    It is freely available:

    http://docs.cksource.com/FCKeditor_2.x/Developers_Guide/Integration/ASP.NET

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, January 24, 2011 4:13 PM
  • User1006193418 posted

    Hi,

    have you tried on Orchard Project. It is just finally released:

    http://orchard.codeplex.com/

    http://www.orchardproject.net/

    Best Regards,
    Shengqing Yang

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, January 25, 2011 3:19 AM
  • User-248150665 posted

    There is a free tool that can do what you need - take a look at ElasticWCM.

    It's a set of ASP.net controls that you can drop on your ASP.NET page in the places you want to be manageable and get full content management functionality immediately.

    For example, let's say you have an ASP.NET page with some hardcoded HTML like this:

    <h1>My page Title</h1>
    <p>Some page text</p>
    <img src="picture.jpg" />


    To allow authorized users to edit this content all you have to do is to reference ElasticWCM.Client.dll in your project and wrap one or more ElasticWCM controls around your Html.

    Simplest way is to allow full control over the page's HTML by placing all your content inside a single HtmlField control:

    <ewcm:HtmlField runat="server" FieldName="Home Page Text">
      <h1>My page Title</h1>
      <p>Some page text</p>
      <img src="picture.jpg" />
    </ewcm:HtmlField>
    


    Then place the PageToolbar control on your MasterPage.

    <ewcm:PageToolbar ID="PageToolbar1" runat="server"/>

    When running the site (if you have proper permissions) you will see the toolbar displaying "Edit Page" button. Click this button and you'll be redirected to rich Html Page Editor where you can edit the content.

    You could also split this Html content into three fields - StringField for the header, HtmlField for the rich text, and ImageField for the picture.

    ElasticWCM controls support check-in/check-out, publishing, version control, multiple languages and more. It's free for small sites. Look for details on http://www.elasticwcm.com

    Sunday, April 1, 2012 7:46 PM