1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / News submit on public site

News submit on public site

9 posts, 0 answered
  1. Tim
    Tim avatar
    156 posts
    Registered:
    23 Sep 2007
    14 Jan 2008
    Link to this post

    Sitefinity Support,

    I just wondering if Sitefinity has an easy way to allow user to submit their news on the public site and insert into backend database like Sitefinity CMS in the admin site.


    Please let me know
    Thanks
    Tim

  2. Nikifor
    Nikifor avatar
    232 posts
    Registered:
    18 May 2013
    15 Jan 2008
    Link to this post
    Hello Tim,

    Unfortunately, for now Sitefinity does not have public control which allows typing news from the web site. If you want such functionality, you should create a custom control for you needs.

    Please do not hesitate to contact us if you have any other questions.

    Best wishes,
    Nikifor
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Tim
    Tim avatar
    156 posts
    Registered:
    23 Sep 2007
    15 Jan 2008
    Link to this post
    Sitefinity Team,

    Could you please let me know which tables should I insert data into for news and  I also want to use custom priovider instead of default news provider, for example:

    <add name="Breaking_News" 
                visible="False" 
                defaultMetaField="Title" 
                securityProviderName="" 
                allowVersioning="True" 
                applicationName="/BreakingNews" 
                versioningProviderName="" 
                connectionStringName="GenericContentConnection" 
                type="Telerik.Cms.Engine.Data.Providers.DefaultProvider, Telerik.Cms.Engine.Data" 
                listTemplate="~/Sitefinity/Admin/ControlTemplates/Breaking_News/ControlPanelList.ascx" 
                insertTemplate="~/Sitefinity/Admin/ControlTemplates/Breaking_News/ControlPanelInsert.ascx" 
                editTemplate="~/Sitefinity/Admin/ControlTemplates/Breaking_News/ControlPanelEdit.ascx" 
                permissionsTemplate="~/Sitefinity/Admin/ControlTemplates/Breaking_News/ControlPanelPermissions.ascx" 
                commandPanelTemplate="~/Sitefinity/Admin/ControlTemplates/Breaking_News/CommandPanel.ascx" 
                editorTemplate="~/Sitefinity/Admin/ControlTemplates/Breaking_News/EditorTemplate.ascx" 
                shareContentDialogTemplate="~/Sitefinity/Admin/ControlTemplates/Breaking_News/NewContentDialog.ascx" 
                selectContentDialogTemplate="~/Sitefinity/Admin/ControlTemplates/Breaking_News/SelectContentDialog.ascx" 
                contentVersionViewUrl="~/Sitefinity/Admin/ControlTemplates/Breaking_News/ContentVersionView.aspx" 
                commentsListTemplate="~/Sitefinity/Admin/ControlTemplates/Breaking_News/CommentsList.ascx" 
                commentsEditTemplate="~/Sitefinity/Admin/ControlTemplates/Breaking_News/CommentsEdit.ascx" 
                contentSelectorTemplate="~/Sitefinity/Admin/ControlTemplates/Generic_Content/ContentSelector.ascx" 
                commentsModeration="true" /> 


    Please let me know
    Thanks
    TIm
  4. Nikifor
    Nikifor avatar
    232 posts
    Registered:
    18 May 2013
    15 Jan 2008
    Link to this post
    Hello Tim,

    Please accept my apology for not pointing that out in my previous email.

    Answers to all your questions which may occur in the process of developing this may be found in the User Manual, section  Working with Modules > Customizing Modules. In Adding Providers, you will find detailed information about adding a custom provider to your web site.

    Please review it thoroughly and get back to us if any clarifying questions occur.

    Thank you for your time.

    Kind regards,
    Nikifor
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. Tim
    Tim avatar
    156 posts
    Registered:
    23 Sep 2007
    15 Jan 2008
    Link to this post
    Sitefinity Team,

    Sorry, I guess I did make myself clear on the last post.

    I would like to allow user to submit news from public site using custom news provider and the question is how can I do it and which tables should I insert data to and what's the order of insertion.  I don't have any problems to create custom provider in web.config file.

    Thanks
    Tim
  6. Nikifor
    Nikifor avatar
    232 posts
    Registered:
    18 May 2013
    16 Jan 2008
    Link to this post
    Hello Tim,

    Unfortunately you cannot add news from the public part of the site as we do not provide such public controls. You can implement your own controls, similar to the ones in the admin.

    Greetings,
    Nikifor
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  7. Tim
    Tim avatar
    156 posts
    Registered:
    23 Sep 2007
    16 Jan 2008
    Link to this post
    Would you mind tell me how..... and which tables should I look at  it?

    Thanks
    Tim
  8. iosmak
    iosmak avatar
    18 posts
    Registered:
    12 Oct 2006
    17 Jan 2008
    Link to this post
    Hi Tim,

    I think I may have a solution to this misunderstanding. Nikifor correctly pointed out that we don’t offer this functionality out of the box, but as far as I understand, you’d like some elaboration on how to do that yourself. 

    When working with Sitefinity modules, or any other part of Sitefinity for that matter, you should use our API, in other words appropriate manager class. The naming convention of these classes is ModuleName + "Manager", so for news you should create a new instance of NewsManager class.

    All of the manager classes have overloaded constructors, which means that you can instantiate them with or without provider name. So new NewsManager() would be instantiated with default provider, and new NewsManager(string providerName) with the provider whose name is supplied.

    Generally speaking, manager classes have methods and functions which you can easily explore through IntelliSense and their naming conventions are self explanatory. A peculiarity of the Generic Content based modules (Generic Content, News, Blogs in 3.1, and Photos & Documents, Newsletter and Events starting in 3.2) is that for most of the content management they use their base Content manager. That, however, you can easily access through Content property.

    To illustrate this, let me give you a simple example:

    // create new instance of news manager with default provider 
            Telerik.News.NewsManager newsManager = new Telerik.News.NewsManager(); 
            // create new content 
            Telerik.Cms.Engine.IContent submittedNews = newsManager.Content.CreateContent("text/html"); 
            // set any meta data for the content you wish to set 
            submittedNews.SetMetaData("Title""Submitted news title"); 
            // set the actual content 
            submittedNews.Content = "Text of the news"
            // save the content with news manager and you are done 
            newsManager.Content.SaveContent(submittedNews); 


    There is also a video which explains a scenario very similar to yours. The video explains how to add a public control for adding new blogs and I even explain news manager briefly, so you may want to take a look at that :

    http://www.sitefinity.com/Videos/Working_With_Sitefinity_API/

    In addition to this, since you are interested in News module which is a Generic Content based module, you may want to check out these two posts (C# and VB.NET samples):

    http://blogs.sitefinity.com/Ivan/Post/07-12-20/sitefinity_intra-site_modules_the_unbearable_lightness_of_development.aspx

    http://blogs.sitefinity.com/Ivan/Post/08-01-16/sitefinity_intra-site_modules_with_visual_basic_net_the_even_more_unbearable_lightness_of_development.aspx

    I hope I've understood your question correctly and that you will find this answer helpful.

    Kindest regards,
    Ivan
  9. Tim
    Tim avatar
    156 posts
    Registered:
    23 Sep 2007
    17 Jan 2008
    Link to this post
    I will check out API.

    Thanks
    Tim
Register for webinar
9 posts, 0 answered