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

Forums / Developing with Sitefinity / Customizing News - NewsItemNews.ascx

Customizing News - NewsItemNews.ascx

2 posts, 1 answered
  1. Petr
    Petr avatar
    34 posts
    Registered:
    03 Jan 2011
    11 Feb 2011
    Link to this post
    Hi,

    I need to customize NewsItemNews.ascx and I don't know, how to override (or extend) existing "Crete this new item" action. I know how to publish news via code behind code, but  I don't know, how to redirect page to Preview mode (as standard button). Is there some method which I can call after SaveContent, which will display this news item in preview mode? If now, how to redirect to main page with list of news items?

    Thanks

    Petr
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    15 Feb 2011
    Link to this post
    Hello Petr,

    Please take a look at replacing child views. To redirect to the preview view you can use host commands

    CreateHostViewCommand<NewsItemPreview>(itemId.ToString());


    All the best,
    Ivan Dimitrov
    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
    Answered
2 posts, 1 answered