More in this section
Forums / Developing with Sitefinity / How to develop page for blog post creation

How to develop page for blog post creation

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Randy Bauer
    Randy Bauer avatar
    67 posts
    25 Sep 2009
    05 Nov 2009
    Link to this post
    I have a requirement to create a web page that allows a defined user to create/modify blog post entries.  They don't want the users to have to log into the Sitefinity Management Tools to create/modify posts.

    Basically, they want me to create a page that has a text box for the title, the radEditor for the contents, and a submit button.  They will type in the title, contents and select submit.

    Has anyone done this?  Is there a better option?  I'm looking at the security and turning off everything, but I don't think that's what they want.  They want to users to feel that they are still on the same site.

    I know that Word 2007 allows the create of blog post entries and that works nice.  The problem is that we are still using Word 2003.


  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    05 Nov 2009
    Link to this post
    Hi Randy Bauer,

    We will have similar functionality for Sitefinity 4.0. Actually you can implement this in a simple custom control with a template.  You can also use user control.

    Here are some steps.

    1. You should use ContentManager and BlogManager API.
    2. Create a template for your control - textboxex and other controls that will have the same ID as your metakeys .
    3. Use UserManager and MembershipUsers class to show your custom control only to Authenticated users. You can also use Page.User.Identity.IsAuthenticated.

    4. On button click - your save button persists the data using Sitefinity API

    Creating a new post will be easy because you do not need to get the ID of the current post. Modifying will be more complicated because you need to have the ID of the post being watched. There are two ways that you can use to get the ID.

     - Wrap your custom login in a control that Derives from BlogPosts control. Override one of the methods (for instance SetMetaData) that has content item as a  parameter.
    - Add the ID of each post as a QueryString then get the id from the url.

    Once you have the ID you can get  the content item using GetContent method.

    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
2 posts, 0 answered