More in this section
Forums / Developing with Sitefinity / What is the url of published to future date news,etc.?

What is the url of published to future date news,etc.?

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. polatengin
    polatengin avatar
    1 posts
    20 Jun 2007
    16 Feb 2010
    Link to this post

    I need a preview property to my sitefinity web site.

    I think I can achieve this functionality with publish news,etc to future date. Then navigate to the url of saved item.

    But, I don't know how can I find url of the saved item.

    If I found url (like domain/p=id&preview in wordpress) I can preview the item in sites theme.

  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    01 Feb 2016
    17 Feb 2010
    Link to this post
    Hello polatengin,

    Thank you for using our services. 

    The URLs for news items, and in this case for all items coming from generic content based modules are determined based on their URL rewrite rule in web.config. For example the default one is:
    <add name="News" urlRewriteFormat="[Publication_Date]/[Title].aspx" urlDateTimeFormat="yy-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" />

    This means that if you have a page on which you have placed a News View control (say the page is ~/news.aspx) then the Urls to single news items would be[Publication_Date]/[Title].aspx

    I hope this information helps you.

    All the best,
    Radoslav Georgiev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
2 posts, 0 answered