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

Forums / Developing with Sitefinity / How to show multiple News Items in a single page

How to show multiple News Items in a single page

10 posts, 0 answered
  1. praveen
    praveen avatar
    11 posts
    Registered:
    02 Aug 2010
    10 Dec 2010
    Link to this post
    Hi,

               I am new to Sitefinity 3.7. I am working on  NewsView Control to display News items my requirment is I want to display Content information for all news items in NewsView list. I checked in NewsView settings but there is no checkbox  property for Content for all news items.

    Please help to me how can I achieve this. I want to show multiple  News Items in a single page.

    Thanks,
    Praveen Gundeti
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    10 Dec 2010
    Link to this post
    Hi praveen,

    Please take a look at this forum post.

    Kind 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. praveen
    praveen avatar
    11 posts
    Registered:
    02 Aug 2010
    10 Dec 2010
    Link to this post

    Hi,

    1. Open the control designer template  for news ~/Sitefinity/Admin/ControlTemplates/News/Design/NewsViewControlDesigner.ascx

    I am trying to modify as you said but I haven't got / Design folder and NewsViewContorlDesigner.ascx file under ~/Sitefinity/Admin/ControlTemplates/News.

    Please help me what I have to do for getting NewsViewControlDesigner.asck file.

    Thanks,

    Praveen Gundeti
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    10 Dec 2010
    Link to this post
    Hi praveen,

    You have to map the external template NewsViewContorlDesigner.ascx  - How to map a tempalte.

    Greetings,
    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
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    10 Dec 2010
    Link to this post
    Hello praveen,

    I sent a reply in the other thread you opened. Please post your questions only in the other thread so the other community members will follow the entire discussion and find it helpful.

    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
  6. praveen
    praveen avatar
    11 posts
    Registered:
    02 Aug 2010
    10 Dec 2010
    Link to this post
    Hi Ivan,

              Thanks fo rthe help. I managed to download the external templates and maped it as instructed after that I modified the NewsViewControlDesigner.ascx file as you instructed. But, I am getting following error after login. (attached error screen shot)

    Error:

    Could not find a type for a name.  The type name was 'Telerik.News.WebControls.Admin.NewsViewControlDesigner'.

    Please help me how to sort out this issue.

    Thanks.

    Regards,
    Praveen
  7. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    11 Dec 2010
    Link to this post
    Hello praveen,

    Please make sure that you have the following mapping in ControlsConfig file and each after modification to it you restart the application. If you do not restart the application the changes do not apply

    <viewSettings hostType="Telerik.News.WebControls.Design.NewsViewDesigner"
                      layoutTemplatePath="~/Sitefinity/Admin/ControlTemplates/News/NewsViewControlDesigner.ascx" />


    Best wishes,
    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
  8. praveen
    praveen avatar
    11 posts
    Registered:
    02 Aug 2010
    13 Dec 2010
    Link to this post
    Hi Ivan,

             Thank you very much for your help. I added  the following code in ControlsConfig file. Now I am getting two options in NewsView setting one for Content and another one for Summary. But the thing is when I choose "Content" radio button option it still displaying only Summary information Newsview. I would like to see whole content information for all News Items in a single page.

    I just having only one "List&page" presentation mode in NewsView edit mode. Is it because of one presentation mode am I not able to see whole content information for all News Items? Do I need add "Expanded list" presentation mode? If yes, please suggest me how can we do that or any other suggestion getting "Content" information for all News Items in "List&page" presentation mode.

    <viewSettings hostType="Telerik.News.WebControls.Design.NewsViewDesigner"
                      layoutTemplatePath="~/Sitefinity/Admin/ControlTemplates/News/NewsViewControlDesigner.ascx" />

    Thanks.

    Regards,
    Praveen Gundeti
  9. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    13 Dec 2010
    Link to this post
    Hi praveen,

    You have to map the public template - ListPageMaster.ascx which you can get from the external template archive and add a literal control with ID="Conent" in it.

    <p>
          <asp:Literal ID="content" runat="server"></asp:Literal>
    </p>
     

    Greetings,
    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
  10. praveen
    praveen avatar
    11 posts
    Registered:
    02 Aug 2010
    13 Dec 2010
    Link to this post
    Hi Ivan,

    Thanks for your help. It's working fine now you are really helped me a lot. Thanks once again.

    Regards
    Praveen
Register for webinar
10 posts, 0 answered