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

Forums / Developing with Sitefinity / Populating News via a Windows Service

Populating News via a Windows Service

9 posts, 0 answered
  1. Will
    Will avatar
    26 posts
    Registered:
    19 Aug 2008
    26 Sep 2009
    Link to this post
    We need to poll an external news service periodically and would like to add the articles retrieved into the Sitefinity News module.  I've taken a look at the examples, and did a few searchs, but I don't see anything that shows how to use the API outside of a web site.  It looks like I would need to copy some of the Sitefinity settings in the web.config and paste them into the app.config of the Windows Service, but I'm not sure if the library DLLs will even work outside of a web environment.  Will they?  And if so, where can I find more information for this cenario?

    We could obviously add another layer of complexity by creating a web service within the web site and have the windows service send the articles to the web service, but that is something that we absolutely want to avoid.  It would cause some serious load issues and additional points of failure (hence the reason for the windows service).

    Bill
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    26 Sep 2009
    Link to this post
    Hello Bill,

    Sitefinity is develop to work as a website and you will not be enter or use any data without using a WebService or a direct connection to the database.

    Best wishes,
    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.
  3. Will
    Will avatar
    26 posts
    Registered:
    19 Aug 2008
    29 Sep 2009
    Link to this post
    Hey Ivan,

    We have a direct connection to the database and it would be nice if the DLLs would work from any application (Web or Windows).  Are you saying that if I do not want to use a web service, that I should place the records in the database directly?

    Thanks,
    Bill
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    29 Sep 2009
    Link to this post
    Hello Bill,

    I would prefer to use WebService for communication, but it seems that the only way will be sending and gathering information from the database, since you want to avoid the WebServices.

    Best wishes,
    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.
  5. Will
    Will avatar
    26 posts
    Registered:
    19 Aug 2008
    29 Oct 2009
    Link to this post
    Hey Ivan,

    I've got this pretty much working as a web service, but the design of the library has made things extremely difficult to work with.  The library makes heavy use of interfaces and even returns interface objects instead of an abstract class object or a hard typed object.  Only hard typed objects can be sent through a web service or WCF, so I was forced to create duplicate objects for every object returned by the library.

    I tried using the reflected types of the returned interface objects, but even they can't be used as they themselves have interface objects internally and/or publicly.  I think that your dev team needs to sit down and take a close look at this design.  The current design is using VB6 ideologies instead of OOD and is extremely out dated.  This works fine for COM objects, but does not work at all for web service based objects.  Like I said, I've got it working, but it is definitely a bad way of doing things.

    Thanks,
    Bill
  6. Will
    Will avatar
    26 posts
    Registered:
    19 Aug 2008
    24 Nov 2009
    Link to this post
    Hey Ivan,

    I think that we're about to put this horse to rest.  While adding some additional meta data fields I started looking at the database and it appears that there are only a couple tables related to storing news items, the [dbo].[sf_CmsTextContent] table contains the textual content of the news item, and the [dbo].[sf_GC_Variables] table contains all of the additional fields (meta data fields).  If I populate those tables directly, is that all that I have to do to add news items?

    Also, we don't like having the title/subject of an article in the URL.  It presents 2 limitations. no 2 articles can have the same title (which happens all the time), and if the title of an item is changed it either leads to 404 errors (when linked from search engines) or a url that no longer matches the title/subject.  We prefer to use the Guid, as that will never change.  Does the { "/News", "UrlRewriteFormat" } entry in the [dbo].[sf_GC_Variables] table define this?  If so, how would we change it to use the Guid (ID column)?

    Thanks,
    Bill

    P.S.  I wrote the http://www.sitefinity.com/support/forums/sitefinity-3-x/suggestions/change-to-dbo-sf-gc-variables-suggestion.aspx suggestion for the [dbo].[sf_GC_Variables] table
  7. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    30 Nov 2009
    Link to this post
    Hello Bill,

    Information about new News articles should be also entered in the [dbo].[sf_CmsContentBase], [dbo].[sf_CmsTextContent], and [dbo].[sf_GCMetaData]. Populating those 3 tables should be enough to input new articles into the news through db queries. You should not modify the [dbo].[sf_GC_Variables] table.

    The url rewrite format is a built in setting for each generic content based module. The url rewrite format is set for each module in your website's web.config file:
    <add name="News" allowLocalization="true" urlRewriteFormat="ID={GUID}" urlDateTimeFormat="yy-MM-dd" urlWhitespaceChar="_" visible="False" defaultMetaField="Title" securityProviderName="" allowVersioning="True" allowComments="true" applicationName="/News" versioningProviderName="" commentsModeration="true" allowWorflow="true" connectionStringName="GenericContentConnection" type="Telerik.News.Data.DefaultNewsProvider, Telerik.News.Data" />

    For more information on this you can take a look at URL Rewriting In Sitefinity webinar and its notes.

    Best wishes,
    Radoslav Georgiev
    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.
  8. Will
    Will avatar
    26 posts
    Registered:
    19 Aug 2008
    30 Nov 2009
    Link to this post
    Hi Radoslav,

    Thanks very much for the table info, I'll start on that right now.  However, I am still unable to get the url rewritting to work at all, other than changing the date format.  The code that you and Ivan have presented does not match what is in the web.config, nor does it work.  Here is the <telerik> section of the wed.config that we have:

    <telerik> 
        <dataAccess defaultConnection="DefaultConnection">  
            <connections> 
                <add  
                    name="DefaultConnection" 
                    driver="Nolics.ORMapper.DataProviders.SqlServer2005Provider" 
                    connectionStringName="Sitefinity" 
                /> 
                <add  
                    name="GenericContentConnection" 
                    driver="Telerik.Cms.Engine.Data.Providers.GCSql2005Provider, Telerik.Cms.Engine.Data" 
                    connectionStringName="Sitefinity" 
                /> 
            </connections> 
        </dataAccess> 
        <framework> 
            <caching defaultProvider="memoryCache">  
                <providers> 
                    <add name="memoryCache" type="Telerik.Caching.MemoryCachingProvider, Telerik.Framework" /> 
                    <add name="ASPNET" type="Telerik.Caching.AspNetCachingProvider, Telerik.Framework" duration="120" slidingExpiration="true" /> 
                </providers> 
                <cacheDependency mode="InMemory" /> 
            </caching> 
            <modules> 
                <add type="Telerik.Cms.Engine.GenericContentModule, Telerik.Cms.Engine" /> 
                <add type="Telerik.News.NewsModule, Telerik.News" /> 
                <add type="Telerik.Blogs.BlogsModule, Telerik.Blogs" /> 
                <add type="Telerik.Lists.ListModule, Telerik.Lists" /> 
                <add type="Telerik.Polls.PollModule, Telerik.Polls" /> 
                <add type="Telerik.Forums.ForumsModule, Telerik.Forums" /> 
                <add type="Telerik.Libraries.LibrariesModule, Telerik.Libraries" /> 
                <add type="Telerik.Events.EventsModule, Telerik.Events" /> 
                <add type="Telerik.Notifications.Newsletters.NewsletterModule, Telerik.Notifications" /> 
                <add type="Telerik.Wiki.WikiModule, Telerik.Wiki" /> 
            </modules> 
            <services> 
                <add type="Telerik.Search.SearchModule, Telerik.Search" /> 
                <add type="Telerik.Search.Engine.IndexingManager, Telerik.Search" /> 
                <add type="Telerik.Rss.RssModule, Telerik.Rss" /> 
                <add type="Telerik.Rss.RssProviderService, Telerik.Rss" /> 
                <add type="Telerik.Cms.Engine.ContentUrlRewriterService, Telerik.Cms.Engine" /> 
            </services> 
            <tools> 
                <add type="Telerik.Cms.Tools.SiteExporter, Telerik.Cms" /> 
            </tools> 
            <assemblies> 
            </assemblies> 
            <controlDesigners> 
                <add key="System.Web.UI.WebControls.Image" value="Telerik.Libraries.WebControls.ImageEditorDialog, Telerik.Libraries" /> 
                <add key="Telerik.Cms.Engine.WebControls.SitefinityImage" value="Telerik.Libraries.WebControls.ImageEditorDialog, Telerik.Libraries" /> 
            </controlDesigners> 
            <propertySelectors> 
                <add key="System.Web.UI.Design.ImageUrlEditor" value="Telerik.Libraries.WebControls.ImageSelector, Telerik.Libraries" /> 
            </propertySelectors> 
            <sitefinityConfiguration defaultProvider="XmlConfigProvider">  
                <providers> 
                    <add name="XmlConfigProvider" type="Telerik.Sitefinity.Configuration.XmlConfigProvider, Telerik.Framework" /> 
                </providers> 
            </sitefinityConfiguration> 
        </framework> 
        <notifications defaultProvider="Notifications">  
            <providers> 
                <clear /> 
                <add name="Notifications" type="Telerik.Notifications.Data.DefaultProvider, Telerik.Notifications.Data" connectionStringName="DefaultConnection" EnableSsl="false" MergedFields="FirstName;LastName" SendingInterval="1000" /> 
            </providers> 
        </notifications> 
        <search defaultProvider="Search">  
            <providers> 
                <clear /> 
                <add name="Search" type="Telerik.Search.Data.DefaultProvider, Telerik.Search.Data" connectionStringName="DefaultConnection" useCompoundIndexFile="true" /> 
            </providers> 
            <indexClients> 
                <add name="PageIndex" type="Telerik.Cms.Search.PageIndexProvider, Telerik.Cms" settingsControl="Telerik.Cms.Web.UI.PageIndexSettings, Telerik.Cms" viewSettingsControl="Telerik.Cms.Web.UI.SearchViewControl, Telerik.Cms" description="Provides indexing services for CMS Pages." /> 
            </indexClients> 
            <indexers> 
                <add extensionOrMimeType=".aspx" type="Telerik.Search.Engine.HtmlIndexer" /> 
                <add extensionOrMimeType="text/html" type="Telerik.Search.Engine.HtmlIndexer" /> 
            </indexers> 
            <searchInputValidation> 
                <add matchPattern="\A[\*\?\~][^\s]*" replacementString="" enabled="true" matchAlert="You can not start your query using wildcards, modify your query and try again.." /> 
                <add matchPattern="[\!\^\(\)\{\}\[\]]" replacementString="" enabled="true" matchAlert="Strange characters should be enclosed between double quotation, modify your query and try again.." /> 
            </searchInputValidation> 
        </search> 
        <localization defaultProvider="Sitefinity" persistenceMode="None" defaultCulture="en" cultures="en, es, fr, de, bg">  
            <providers> 
                <clear /> 
                <add name="Sitefinity" type="Telerik.Localization.Data.DefaultProvider, Telerik.Localization.Data" connectionStringName="DefaultConnection" /> 
            </providers> 
        </localization> 
        <lists defaultProvider="Sitefinity">  
            <providers> 
                <clear /> 
                <add name="Sitefinity" securityProviderName="" type="Telerik.Lists.Data.DefaultProvider, Telerik.Lists.Data" connectionStringName="DefaultConnection" visible="true" /> 
                <!--
                <add name="SitefinityXml" securityProviderName="" type="Telerik.Lists.Data.XmlProvider, Telerik.Lists.Data" dataFile="~/App_Data/Lists.xml" visible="true"  />
                --> 
            </providers> 
        </lists> 
        <forums defaultProvider="Sitefinity">  
            <providers> 
                <clear /> 
                <add name="Sitefinity" securityProviderName="" profileProviderName="Sitefinity" type="Telerik.Forums.Data.DefaultProvider, Telerik.Forums.Data" connectionStringName="DefaultConnection" visible="true" /> 
            </providers> 
        </forums> 
        <rss defaultProvider="Sitefinity">  
            <feeds> 
            </feeds> 
            <channelProviders> 
                <clear /> 
                <add name="Page Rss Provider" type="Telerik.Cms.Web.RssChannelProvider, Telerik.Cms" settingsControl="Telerik.Cms.Web.UI.RssSettingsControl, Telerik.Cms" viewSettingsControl="Telerik.Cms.Web.UI.RssViewSettingsControl, Telerik.Cms" description="Provides RSS for CMS pages" /> 
            </channelProviders> 
            <providers> 
                <clear /> 
                <add name="Sitefinity" type="Telerik.Rss.Data.DefaultServiceProvider, Telerik.Rss.Data" connectionStringName="DefaultConnection" /> 
            </providers> 
        </rss> 
        <versioning defaultProvider="Sitefinity">  
            <providers> 
                <clear /> 
                <add name="Sitefinity" type="Telerik.Versioning.Data.DefaultProvider, Telerik.Versioning.Data" connectionStringName="DefaultConnection" /> 
            </providers> 
        </versioning> 
        <security defaultProvider="SqlSecurityProvider" cmsProvidersName="SqlSecurityProvider">  
            <roles> 
                <clear /> 
                <add name="Administrators" permission="Unrestricted" /> 
            </roles> 
            <providers> 
                <clear /> 
                <add  
                    name="DefaultSecurityProvider" 
                    connectionStringName="DefaultConnection" 
                    type="Telerik.Security.Data.DefaultSecurityProvider, Telerik.Security.Data" 
                    membershipProvider="Sitefinity" 
                    roleProvider="Sitefinity" 
                /> 
                <add  
                    name="SqlSecurityProvider" 
                    connectionStringName="DefaultConnection" 
                    type="Telerik.Security.Data.DefaultSecurityProvider, Telerik.Security.Data" 
                    membershipProvider="SqlMembershipProvider" 
                    roleProvider="SqlRoleProvider" 
                /> 
            </providers> 
        </security> 
        <cms defaultProvider="Sitefinity" pageExtension=".aspx" disabled="false" pageEditorUIMode="Overlay">  
            <providers> 
                <clear /> 
                <add connectionStringName="DefaultConnection" allowPageHistory="true" 
                 allowPageWorkflow="false" cachingProviderName="ASPNET" name="Sitefinity" 
                 type="Telerik.Cms.Data.DefaultProvider, Telerik.Cms.Data" /> 
            </providers> 
            <toolboxControls> 
                <clear /> 
                <add name="Generic Content" section="Most popular" type="Telerik.Cms.Engine.WebControls.GenericContent, Telerik.Cms.Engine" /> 
                <add name="Image" section="Most popular" type="Telerik.Cms.Engine.WebControls.SitefinityImage, Telerik.Cms.Engine" 
                 description="Displays an image on a Web page." /> 
                <add name="Image gallery" section="Most popular" type="Telerik.Libraries.WebControls.ImageGallery, Telerik.Libraries" /> 
                <add name="Dynamic Hyper Link" section="Navigation" type="Telerik.Cms.Engine.WebControls.DynamicHyperLink, Telerik.Cms.Engine" 
                 description="Dynamic Hyper Link lets you declare link for cms pages so that its Navigate URL doesn't not depend on where the page is located in the hierarchy." /> 
                <add name="Site Menu" section="Navigation" url="~/Sitefinity/UserControls/Navigation35/SiteMenu.ascx" /> 
                <add name="Site Panelbar" section="Navigation" url="~/Sitefinity/UserControls/Navigation35/SitePanelbar.ascx" /> 
                <add name="Site Tabstrip" section="Navigation" url="~/Sitefinity/UserControls/Navigation35/SiteTabstrip.ascx" /> 
                <add name="Site Treeview" section="Navigation" url="~/Sitefinity/UserControls/Navigation35/SiteTreeview.ascx" /> 
                <add name="Breadcrumb" section="Navigation" type="Telerik.Cms.Web.UI.Breadcrumb, Telerik.Cms.Web.UI" /> 
                <add name="Hyper Link" section="Navigation" type="Telerik.Cms.Engine.WebControls.SitefinityHyperLink, Telerik.Cms.Engine" 
                 description="Creates links on a Web page that allow users to move from page to page in your application." /> 
                <add name="Language Selector" section="Navigation" type="Telerik.Localization.WebControls.LanguageBar,Telerik.Localization" 
                 description="A control for selecting the current language current version" /> 
                <add name="RadTabStrip" section="RadControls" type="Telerik.Web.UI.RadTabStrip, Telerik.Web.UI" /> 
                <add name="RadMenu" section="RadControls" type="Telerik.Web.UI.RadMenu, Telerik.Web.UI" /> 
                <add name="RadPanelBar" section="RadControls" type="Telerik.Web.UI.RadPanelBar, Telerik.Web.UI" /> 
                <add name="Image " section="Images &amp; Documents" type="Telerik.Cms.Engine.WebControls.SitefinityImage, Telerik.Cms.Engine" 
                 description="Displays an image on a Web page." /> 
                <add name="XML Data Source" section="Data" type="System.Web.UI.WebControls.XmlDataSource, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" 
                 description="Represents an XML data source to data-bound controls." /> 
                <add name="SiteMapDataSource" section="Data" type="System.Web.UI.WebControls.SiteMapDataSource, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" 
                 description="Provides a data source control that Web server controls and other controls can use to bind to hierarchical site map data. " /> 
                <add name="Details View" section="Data" type="System.Web.UI.WebControls.DetailsView, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" 
                 description="Displays the values of a single record from a data source in a table, where each data row represents a field of the record. The DetailsView control allows you to edit, delete, and insert records." /> 
                <add name="Grid View" section="Data" type="System.Web.UI.WebControls.GridView, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> 
                <add name="Login Status" section="Login" type="System.Web.UI.WebControls.LoginStatus, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" 
                 description="Detects the user's authentication state and toggles the state of a link to log in to or log out of a Web site." /> 
                <add name="Login Name" section="Login" type="System.Web.UI.WebControls.LoginName, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" 
                 description="Displays the value of the System.Web.UI.Page.User.Identity.Name property." /> 
                <add name="Login" section="Login" url="~/Sitefinity/UserControls/Login/LoginControl.ascx" 
                 description="Provides user interface (UI) elements for logging in to a Web site." /> 
                <add name="Manage Profile" section="Login" type="Telerik.Security.WebControls.ManageProfile, Telerik.Security" 
                 description="Provides UI for managing user's profile information" /> 
                <add name="Login View" section="Login" url="~/Sitefinity/UserControls/Login/LoginViewControl.ascx" 
                 description="Displays the appropriate content template for a given user, based on the user's authentication status and role membership." /> 
                <add name="Create User" section="Login" url="~/Sitefinity/UserControls/Login/CreateUserWizardControl.ascx" 
                 description="Provides a user interface for creating new Web site user accounts." /> 
                <add name="Spam Protector" section="Forms" type="Telerik.Web.UI.SpamProtection.SpamProtector, Telerik.Cms.Web.UI" 
                 description="Provides spam protection to web forms using different strategies." /> 
                <add name="Video" section="Most popular" type="Telerik.Libraries.WebControls.Video, Telerik.Libraries" 
                 description="Video content control" /> 
            </toolboxControls> 
        </cms> 
        <cmsEngine defaultProvider="Generic_Content">  
            <providers> 
                <clear /> 
                <add name="Generic_Content" urlRewriteFormat="[Publication_Date]/[Name].aspx" urlDateTimeFormat="yyyy-MM-dd" urlWhitespaceChar="_" visible="True" defaultMetaField="Name" securityProviderName="" allowLocalization="False" allowVersioning="True" allowWorkflow="False" allowComments="false" commentsModeration="true" versioningProviderName="" connectionStringName="GenericContentConnection" type="Telerik.Cms.Engine.Data.Providers.DefaultProvider, Telerik.Cms.Engine.Data" /> 
                <add name="News" urlRewriteFormat="[Publication_Date]/[Title].aspx" urlDateTimeFormat="yyyy-MM-dd" urlWhitespaceChar="_" visible="False" defaultMetaField="Title" securityProviderName="" allowVersioning="True" applicationName="/News" versioningProviderName="" commentsModeration="true" connectionStringName="GenericContentConnection" type="Telerik.News.Data.DefaultNewsProvider, Telerik.News.Data" /> 
                <add name="Blogs" urlRewriteFormat="[Publication_Date]/[Title].aspx" urlDateTimeFormat="yyyy-MM-dd" urlWhitespaceChar="_" visible="False" defaultMetaField="Title" applicationName="/Blogs" allowVersioning="True" allowComments="true" commentsModeration="false" allowLocalization="False" localizationProviderName="" allowWorkflow="False" securityProviderName="" versioningProviderName="" connectionStringName="GenericContentConnection" type="Telerik.Blogs.Data.DefaultBlogProvider, Telerik.Blogs.Data" /> 
                <add name="Libraries" urlRewriteFormat="~/{Provider}/{LibraryName}/[Name].sflb.ashx" urlDateTimeFormat="yyyy-MM-dd" urlWhitespaceChar="_" visible="False" defaultMetaField="Name" applicationName="/Libraries" allowVersioning="False" allowLocalization="False" localizationProviderName="" allowWorkflow="False" securityProviderName="" versioningProviderName="" connectionStringName="GenericContentConnection" type="Telerik.Libraries.Data.DefaultProvider, Telerik.Libraries.Data" tagEditorTemplate="~/Sitefinity/Admin/ControlTemplates/Libraries/BatchTagsEditor.ascx" /> 
                <!--Amazon Data Provider [First turn off the default one] url format can be urlRewriteFormat="~/{Provider}/{LibraryName}/[Name].s3lb" as well in that cae there will extra libraries in the url--> 
                <!--<add name="Libraries" urlRewriteFormat="~/{LibraryName}/[Name].s3lb"  thumbnailExtension=".tmb" urlDateTimeFormat="yyyy-MM-dd" urlWhitespaceChar="_" visible="False" defaultMetaField="Name" applicationName="/Libraries" allowVersioning="True" allowLocalization="False" localizationProviderName="" allowWorkflow="False" securityProviderName="" versioningProviderName="" connectionStringName="GenericContentConnection" type="Telerik.Libraries.Data.AmazonProvider, Telerik.Libraries.Data" tagEditorTemplate="~/Sitefinity/Admin/ControlTemplates/Libraries/BatchTagsEditor.ascx" />--> 
                <!--Viddler Data Provider Compatible with other libraries, must add a libraryInfo with type = "Viddler"--> 
                <!--<add name="Libraries" urlRewriteFormat="~/{LibraryName}/[Name].sflb.ashx" thumbnailExtension=".tmb.ashx" urlDateTimeFormat="yyyy-MM-dd" urlWhitespaceChar="_" visible="False" defaultMetaField="Name" applicationName="/Libraries" allowVersioning="True" allowLocalization="False" localizationProviderName="" allowWorkflow="False" securityProviderName="" versioningProviderName="" connectionStringName="GenericContentConnection" type="Telerik.Libraries.Data.ViddlerProvider, Telerik.Libraries.Data" tagEditorTemplate="~/Sitefinity/Admin/ControlTemplates/Libraries/BatchTagsEditor.ascx" />--> 
                <add name="Events" urlRewriteFormat="[Publication_Date]/[Title].aspx" urlDateTimeFormat="yyyy-MM-dd" urlWhitespaceChar="_" visible="False" defaultMetaField="Title" securityProviderName="" allowVersioning="True" applicationName="/Events" versioningProviderName="" commentsModeration="true" connectionStringName="GenericContentConnection" type="Telerik.Events.Data.DefaultEventsProvider, Telerik.Events.Data" /> 
                <add name="Wiki" urlRewriteFormat="[Wiki]/[Name].aspx" urlWhitespaceChar="_" visible="False" defaultMetaField="Name" securityProviderName="" allowVersioning="True" applicationName="/Wiki" versioningProviderName="" allowComments="true" commentsModeration="true" connectionStringName="GenericContentConnection" type="Telerik.Cms.Engine.Data.Providers.DefaultProvider, Telerik.Cms.Engine.Data" /> 
            </providers> 
            <rssProviders> 
                <clear /> 
                <add name="Blogs" type="Telerik.Blogs.RssProvider, Telerik.Blogs" visible="True" applicationName="/Blogs" rssFieldAuthor="Author" rssFieldTitle="Title" rssFieldPubDate="Publication_Date" /> 
            </rssProviders> 
            <browserCacheSettings lastModifiedDateEnabled="true" contentExpirationEnabled="false">  
                <expirationSettings option="ExpireImmediately" value="0">  
                </expirationSettings> 
            </browserCacheSettings> 
            <metaFields> 
                <add key="Generic_Content.Name" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="Name this content" mandatory="True" /> 
                <add key="Generic_Content.Description" valueType="LongText" visible="True" searchable="False" sortable="True" defaultValue="Add description here" /> 
                <add key="Generic_Content.Author" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" /> 
                <add key="Generic_Content.Category" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" /> 
                <add key="News.Title" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" /> 
                <add key="News.Summary" valueType="LongText" visible="True" searchable="True" sortable="True" defaultValue="" /> 
                <add key="News.Url" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" /> 
                <add key="News.Author" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" /> 
                <add key="News.Source" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" /> 
                <add key="News.SourceUrl" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" /> 
                <add key="News.Publication_Date" valueType="DateTime" visible="True" searchable="True" sortable="True" defaultValue="#Now" /> 
                <add key="News.Expiration_Date" valueType="DateTime" visible="True" searchable="True" sortable="True" defaultValue="#Max" /> 
                <add key="News.Thumbnail" valueType="ShortText" visible="True" searchable="False" sortable="False" defaultValue="" /> 
                <add key="News.ThumbnailWidth" valueType="Integer" visible="True" searchable="False" sortable="False" defaultValue="" /> 
                <add key="News.ThumbnailHeight" valueType="Integer" visible="True" searchable="False" sortable="False" defaultValue="" /> 
                <add key="News.ImageUrl" valueType="ShortText" visible="True" searchable="False" sortable="False" defaultValue="" /> 
                <add key="News.ImageWidth" valueType="Integer" visible="True" searchable="False" sortable="False" defaultValue="" /> 
                <add key="News.ImageHeight" valueType="Integer" visible="True" searchable="False" sortable="False" defaultValue="" /> 
                <add key="News.ImageCaption" valueType="LongText" visible="True" searchable="True" sortable="True" defaultValue="" /> 
                <add key="News.Category" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue=""></add> 
                <add key="Blogs.Title" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" /> 
                <add key="Blogs.Author" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" /> 
                <add key="Blogs.Publication_Date" valueType="DateTime" visible="True" searchable="True" sortable="True" defaultValue="#Now" /> 
                <add key="Blogs.BlogID" valueType="Guid" visible="False" searchable="True" sortable="True" defaultValue="" /> 
                <add key="Blogs.Category" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" /> 
                <add key="Blogs.View_Count" valueType="Integer" visible="True" searchable="True" sortable="True" defaultValue="0" /> 
                <add key="Libraries.Name" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" /> 
                <add key="Libraries.Width" valueType="Integer" visible="True" searchable="True" sortable="True" defaultValue="" /> 
                <add key="Libraries.Height" valueType="Integer" visible="True" searchable="True" sortable="True" defaultValue="" /> 
                <add key="Libraries.Size" valueType="Integer" visible="True" searchable="True" sortable="True" defaultValue="" /> 
                <add key="Libraries.Extension" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" /> 
                <add key="Libraries.AlternateText" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" /> 
                <add key="Libraries.Author" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" /> 
                <add key="Libraries.Description" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" /> 
                <add key="Libraries.Category" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" /> 
                <add key="Libraries.PermaLink" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" /> 
                <add key="Events.Title" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" /> 
                <add key="Events.Street" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" /> 
                <add key="Events.City" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" /> 
                <add key="Events.Country" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" /> 
                <add key="Events.State" valueType="ShortText" visible="True" searchable="True" sortable="False" defaultValue="" /> 
                <add key="Events.Geomapping_Data" valueType="ShortText" visible="True" searchable="False" sortable="False" defaultValue="" /> 
                <add key="Events.Event_Start" valueType="DateTime" visible="True" searchable="True" sortable="True" defaultValue="#Now" /> 
                <add key="Events.Event_End" valueType="DateTime" visible="True" searchable="True" sortable="True" defaultValue="#Now" /> 
                <add key="Events.Publication_Date" valueType="DateTime" visible="True" searchable="True" sortable="True" defaultValue="#Now" /> 
                <add key="Events.Expiration_Date" valueType="DateTime" visible="True" searchable="True" sortable="True" defaultValue="#Max" /> 
                <add key="Events.Contact_Name" valueType="ShortText" visible="True" searchable="False" sortable="False" defaultValue="" /> 
                <add key="Events.Contact_Email" valueType="ShortText" visible="True" searchable="False" sortable="False" defaultValue="" /> 
                <add key="Events.Contact_Phone" valueType="ShortText" visible="True" searchable="False" sortable="False" defaultValue="" /> 
                <add key="Events.Contact_Cell" valueType="ShortText" visible="True" searchable="False" sortable="False" defaultValue="" /> 
                <add key="Events.Contact_Web" valueType="ShortText" visible="True" searchable="False" sortable="False" defaultValue="" /> 
                <add key="Events.Category" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" /> 
                <add key="Wiki.Name" valueType="ShortText" visible="True" searchable="False" sortable="True" defaultValue="HomePage" mandatory="True" /> 
                <add key="Wiki.Wiki" valueType="ShortText" visible="True" searchable="False" sortable="True" defaultValue="DefaultWiki" /> 
                <add key="Wiki.Author" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" /> 
                <add key="Wiki.Category" valueType="ShortText" visible="True" searchable="False" sortable="True" defaultValue="" /> 
                <add key="Wiki.DisplayName" valueType="Boolean" visible="False" searchable="False" sortable="False" defaultValue="True" /> 
            </metaFields> 
            <contentViewSettings> 
                <add type="Telerik.Cms.Engine.WebControls.Design.Settings.TextSettingService" /> 
                <add type="Telerik.Cms.Engine.WebControls.Design.Settings.ContentSettingService" /> 
                <add type="Telerik.Cms.Engine.WebControls.Design.Settings.MaxWidthSettingService" /> 
            </contentViewSettings> 
        </cmsEngine> 
        <news defaultGenericProvider="News1">  
            <genericContentProviders> 
                <add providerName="News" publicationDateField="Publication_Date" expirationDateField="Expiration_Date" thumbnailUrlField="Thumbnail" urlRewriteFormat="[Publication_Date]/{GUID}.aspx" urlDateTimeFormat="yyyy-MM-dd" urlWhitespaceChar="_" /> 
                <add name="News1" allowLocalization="true" urlRewriteFormat="ID={GUID}" urlDateTimeFormat="yyyy-MM-dd" urlWhitespaceChar="_" visible="False" defaultMetaField="Title" securityProviderName="" allowVersioning="True" allowComments="true" applicationName="/News" versioningProviderName="" commentsModeration="true" allowWorflow="true" connectionStringName="GenericContentConnection" type="Telerik.News.Data.DefaultNewsProvider, Telerik.News.Data" /> 
            </genericContentProviders> 
        </news> 
        <blogs defaultGenericProvider="Blogs">  
            <genericContentProviders> 
                <add providerName="Blogs" publicationDateField="Publication_Date" urlRewriteFormat="[Publication_Date]/[Title].aspx" urlDateTimeFormat="yyyy-MM-dd" urlWhitespaceChar="_" flatOwnership="True" /> 
            </genericContentProviders> 
        </blogs> 
        <libraries defaultGenericProvider="Libraries">  
            <genericContentProviders> 
                <add providerName="Libraries" publicationDateField="Publication_Date" /> 
            </genericContentProviders> 
            <libraryInfo> 
                <add name="Image" title="Image Library" defaultExtenstions=".png, .jpg, .jpeg, .gif" metaKeys="Author, AlternateText, Extension, Name, Height, Width, Size, Category"></add> 
                <add name="Document" title="Document Library" defaultExtenstions=".doc, .docx, .rtf, .txt, .pdf, .ppt, .pptx, .html, .xls, .xlsx" metaKeys="Author, Description, Extension, Name, Size, Category"></add> 
                <add name="Custom" title="Custom Library" defaultExtenstions=".*" metaKeys="Author, Description, Extension, Name, Size, Category"></add> 
                <add name="Video" title="Video" defaultExtenstions=".wmv" metaKeys="Author, Extension, Name, Size, Category, Description"></add> 
                <!-- Viddler can co-exists with other libraries--> 
                <!--<add name="Viddler" title="Viddler Library" defaultExtenstions=".avi, .mpg, .mov, .wmv, .wma, .3gp" metaKeys="Author, Description, Extension, Name, Size, Category"></add>--> 
            </libraryInfo> 
            <!-- before using extensionMapping be you uncomment LibraryHttpModule in handlers and httpHandlers sections --> 
            <extensionMapping defaultExtension=".sflb.ashx">  
                <!--<add key=".jpg" /> 
                <add key=".pdf" /> 
                <add key=".csv" /> 
                <add key=".xls" />--> 
            </extensionMapping> 
        </libraries> 
        <events defaultGenericProvider="Events" googleMapsAPIKey="" googleMapsAPIUrl="http://maps.google.com/maps?file=api&amp;v=2.x&amp;key=" yahooMapsAPIKey="" yahooMapsAPIUrl="http://api.maps.yahoo.com/ajaxymap?v=3.7&amp;appid=" liveSearchMapsAPIUrl="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2">  
            <genericContentProviders> 
                <add providerName="Events" publicationDateField="Publication_Date" expirationDateField="Expiration_Date" eventStartField="Event_Start" eventEndField="Event_End" streetField="Street" cityField="City" countryField="Country" stateField="State" geomappingDataField="Geomapping_Data" urlRewriteFormat="[Publication_Date]/[Title].aspx" urlDateTimeFormat="yyyy-MM-dd" urlWhitespaceChar="_" /> 
            </genericContentProviders> 
        </events> 
        <wiki defaultGenericProvider="Wiki" defaultProvider="SitefinityXml">  
            <genericContentProviders> 
                <add providerName="Wiki" urlRewriteFormat="[Wiki]/[Name].aspx" urlWhitespaceChar="_" /> 
            </genericContentProviders> 
            <providers> 
                <clear /> 
                <add name="SitefinityXml" securityProviderName="" type="Telerik.Wiki.Data.XmlProvider, Telerik.Wiki.Data" dataFile="~/App_Data/Wikis.xml" visible="true"  /> 
            </providers> 
        </wiki> 
        <workflow deleteOnCompletion="true" defaultProvider="NolicsWorkflowProvider">  
            <providers> 
                <clear /> 
                <add name="NolicsWorkflowProvider" connectionStringName="DefaultConnection" type="Telerik.Workflow.NolicsWorkflowProvider, Telerik.Workflow" /> 
            </providers> 
        </workflow> 
        <polls defaultProvider="NolicsPollsProvider">  
            <providers> 
                <clear /> 
                <add name="NolicsPollsProvider" connectionStringName="DefaultConnection" type="Telerik.Polls.Data.NolicsPollsProvider, Telerik.Polls.Data" /> 
            </providers> 
        </polls> 
        <fileManager defaultProvider="Sitefinity">  
            <impersonation username="" password="">  
                <allow roles="Administrators"></allow> 
            </impersonation> 
            <providers> 
                <clear /> 
                <add name="Sitefinity" type="Telerik.FileManager.DefaultProvider, Telerik.FileManager" /> 
            </providers> 
        </fileManager> 
        <personalization defaultProvider="Sitefinity">  
            <providers> 
                <clear /> 
                <add name="Sitefinity" type="Telerik.Personalization.Data.NolicsProvider, Telerik.Personalization.Data" connectionStringName="DefaultConnection" /> 
            </providers> 
            <globalSettings> 
                <add type="Telerik.Cms.Web.UI.Personalization.GeneralSettingPanel, Telerik.Cms" templatePath="~/Sitefinity/Admin/ControlTemplates/Personalization/GeneralSettings.ascx" order="1" /> 
                <add type="Telerik.Cms.Web.UI.Personalization.DashboardSettingPanel, Telerik.Cms" templatePath="~/Sitefinity/Admin/ControlTemplates/Personalization/DashboardSettings.ascx" order="2" /> 
                <add type="Telerik.Cms.Web.UI.Personalization.PageEditorSettingPanel, Telerik.Cms" templatePath="~/Sitefinity/Admin/ControlTemplates/Personalization/PageEditorSettings.ascx" order="3" /> 
            </globalSettings> 
            <dashboardVisibilitySettings> 
                <add key="showMyLatestChanges" value="true" /> 
                <add key="showLastModifiedPages" value="true" /> 
                <add key="showNewUsers" value="false" /> 
                <add key="showLastModifiedBlogs" value="false" /> 
                <add key="showLastModifiedBlogPosts" value="false" /> 
                <add key="showLastModifiedNews" value="false" /> 
                <add key="showLastModifiedForums" value="false" /> 
                <add key="showNewForumPosts" value="false" /> 
                <add key="showLastModifiedLists" value="false" /> 
                <add key="showLastModifiedContents" value="false" /> 
            </dashboardVisibilitySettings> 
        </personalization> 
        <spamProtector defaultProvider="akismet" disabled="true">  
            <providers> 
                <add name="akismet" type="Telerik.Cms.Engine.SpamProtector.AkismetProvider" key="c0e8868fd509" siteUrl="http://www.telerik.com/" /> 
            </providers> 
        </spamProtector> 
        <performanceCounter category="Sitefinity CMS" description="Sitefinity performance statistics" disabled="true">  
            <counters> 
                <add name="DAL Operations/Sec" description="The number database calls made per second." type="RateOfCountsPerSecond32" /> 
                <add name="Error Raised" description="Number of times excpetion has been thrown running the app" type="NumberOfItems32" /> 
                <add name="CMS Page Average Execution Time" description="The average time consumed to serve Sitefinity pages measured in milliseconds." type="AverageTimer32" /> 
                <add name="CMS Content Average Execution Time" description="The average time consumed to serve Sitefinity Content measured in milliseconds." type="AverageTimer32" /> 
                <add name="Average Operation Execution Time" description="The average time to execute an operaion (CRUD) measured in milliseconds." type="AverageTimer32" /> 
            </counters> 
        </performanceCounter> 
        <storageSetting defaultProvider="Amazon">  
            <providers> 
                <add name="Amazon" type="Telerik.Libraries.AmazonStorage.AmazonStorageProvider, Telerik.Libraries" downloadUrlPrefix="http://s3.amazonaws.com" accessKey="#YourAccessKey#" secretAccessKey="#YourSecrectKey#" bucketName="Sitefinity" /> 
            </providers> 
        </storageSetting> 
        <!-- Viddler--> 
        <mediaProvider defaultProvider="viddler">  
            <providers> 
                <add name="viddler" type="Telerik.Libraries.MediaProvider.ViddlerProvider" apiKey="#Your_Api#" baseUrl="http://api.viddler.com/rest/v1/" /> 
            </providers> 
        </mediaProvider> 
    </telerik> 

    I assume that you were referring to the <telerik>/<news> section.  I have removed the News1 item (what you presented) as it causes this to fail.

    Thanks,
    Bill
  9. Will
    Will avatar
    26 posts
    Registered:
    19 Aug 2008
    30 Nov 2009
    Link to this post
    I figured out the url rewriting.  I needed to make changes to the <cmsEngine> section as well.  Once they were made, it worked perfectly.  Thanks a bunch...
Register for webinar
9 posts, 0 answered