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

Forums / Designing with Sitefinity / Multiple News Views Per Page?

Multiple News Views Per Page?

4 posts, 0 answered
  1. joe
    joe avatar
    2 posts
    Registered:
    04 Oct 2010
    12 Oct 2010
    Link to this post
    Hi,

    This seems like it would be a pretty simple issue to resolve, but I can't find it anywhere in the documentation: If I have a news view in my sidebar that I would like to persistently show the title of the newest news item, but also would like that sidebar to display on single-news-item pages, how would I go about making the two news views display different things?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    12 Oct 2010
    Link to this post
    Hi joe,

    To show the newest news item you have to set the following properties of NewsView control

    Filters section

    FilterExpression - Publication_Date <= "#now" AND Expiration_Date > "#now"
    SortExpression - Publication_Date DESC

    Misc section

     MaximumListCount - 1

    Regards,
    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
  3. joe
    joe avatar
    2 posts
    Registered:
    04 Oct 2010
    12 Oct 2010
    Link to this post
    Hi Ivan,

    I'd figured that out, although when the view with those settings displays on a single-item news-view page, it displays the headline of that single item, instead of the newest headline.  Does that make sense? I'm trying to figure out how to have that view display the newest headline all the time, regardless of what page it's being viewed on.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    12 Oct 2010
    Link to this post
    Hello joe,

    For the control where you want to see only the title set BehaviorMode to Master.

    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
Register for webinar
4 posts, 0 answered