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

Forums / 3.x Pre-release forums (retired) / News Module Question

News Module Question

26 posts, 0 answered
  1. WebGeek
    WebGeek avatar
    186 posts
    Registered:
    20 Dec 2006
    20 Feb 2007
    Link to this post

    I really like the new News Module.  Here are my problems/questions:

    1. I can not get my NewsList to point to the correct SingleNewsPage for anything.  I have setup a SingleNewsPage called News_Details.aspx and when I click on "More" I get a Page Can Not Be Found Error.
    2. When I open up my SingleNews page and click on Data > ArticleID > Select, I only see about 10% of the select article window (basically none of the scroll bars show up).
    3. How can I adjust NewsList.ascx to show just the date (not the time also)?
  2. jessenaiman
    jessenaiman avatar
    23 posts
    Registered:
    06 Feb 2007
    20 Feb 2007
    Link to this post
    I am also stumped. I get an error when I click "more." It redirects to a page that is "date/newstitle." What's the trick?
  3. Rebecca
    Rebecca avatar
    536 posts
    Registered:
    24 Sep 2012
    23 Feb 2007
    Link to this post
    Hello James,

    It seems that we have omitted to change these two templates (NewsList.ascx, SingleNews.ascx) in the directory Admin\Templates\News. You can find the proper versions in Sitefinity3.0\TIUSite\Common\Templates\News. You need to do is copy and replace the two files in Admin\Templates\News. We are sorry for the inconvenience.

    Let me also remind you that you should insert NewsList and SingleNews on different pages.
    Please check that you have set both the Publication and Expiration date properties for the news items. 
    In the Web.config. file, add:

        </cmsEngine>
            <news defaultGenericProvider="News">
              <genericContentProviders>
                <add providerName="News"
         publicationDateField="Publication_Date"
         expirationDateField="Expiration_Date"
         thumbnailUrlField="Thumbnail"
         urlRewriteFormat="[Publication_Date]/[Title].aspx"  
        

    You don't need to set anything here: Data > ArticleID > Select

    Change this line in  ~/Admin/Templates/News/NewsList.ascx:    

    <p class="newsdate"><%# DataBinder.Eval(Container.DataItem, "Publication_Date") %></p>


    to

    <p class="newsdate"><%#Eval("Publication_Date", "{0:dd MM yyyy}")%></p>

    All the best,
    Rebecca
    the telerik team
  4. WebGeek
    WebGeek avatar
    186 posts
    Registered:
    20 Dec 2006
    28 Feb 2007
    Link to this post
    Thank you for replying.  I have updated my sitefinity with the latest release candidate, but I am still having a hard time figuring out how to connect my news story list (news.aspx) to my full news story (news_details.aspx).  Do I have to make multiple details pages for them or can I just link to them using one details page using an id?

    Do you have any further instructions on using News?
  5. Rebecca
    Rebecca avatar
    536 posts
    Registered:
    24 Sep 2012
    01 Mar 2007
    Link to this post
    Hello James,

    There is a known issue with underscores in the page title. Can you use "-" instead?
    You can use only one details page with the SingleNews control.

    Follow the steps described below and let us know if you need any further assistance:
    1. Place the NewsList control on your dedicated news page (news.aspx).
    2. Place the SingleNews control on a different page (news-details.aspx).
    3. Go back to page news.apx. Set the SingleNewsPage property of the NewsList control to point to the page where you have placed the SingleNews control, e.g. ~/news-details.aspx.

    Kind regards,
    Rebecca
    the telerik team
  6. WebGeek
    WebGeek avatar
    186 posts
    Registered:
    20 Dec 2006
    01 Mar 2007
    Link to this post
    OK - I have made the change but I am still getting a page can not be found error.

    When I click on "More" on my news list page - I get the following URL:
    Common/Templates/News/News-Details/05-00-19/randall-brewer-joins-faculity-staff.aspx

    Should I insert something in the SingleNews > ArticleID or ProviderName?
  7. Rebecca
    Rebecca avatar
    536 posts
    Registered:
    24 Sep 2012
    02 Mar 2007
    Link to this post
    Hi James,

    Please do the following:
    1. Go to news.aspx and click Edit.
    2. Find the NewsList control and click Edit.
    3. Expand the Behavior section and check the  SingleNewsPage property.
              Is the path is set like this: ~/Common/Templates/News/NewsList.ascx ?

              If yes, delete the above and type ~/news-details.aspx.


    Kind regards,
    Rebecca
    the telerik team
  8. WebGeek
    WebGeek avatar
    186 posts
    Registered:
    20 Dec 2006
    02 Mar 2007
    Link to this post
    It was set to news-details.aspx.  I changed it to ~/news-details.aspx and it seems to be working fine now.

    Thanks.

     

  9. Vangelis
    Vangelis avatar
    153 posts
    Registered:
    07 Jan 2006
    04 Mar 2007
    Link to this post
    Hi,

    I followed all steps described here to setup news list and single news and it work ok. BUT on single news list page there is a link back to news and when it is pressed it searches for a page NewsAndEvents.aspx . Am I missing something about parameters on news module?

    Best regards

    Vagelis

    The resource cannot be found.

    Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.

    Requested URL: /test-project/AboutUs/NewsAndEvents.aspx

  10. Rebecca
    Rebecca avatar
    536 posts
    Registered:
    24 Sep 2012
    05 Mar 2007
    Link to this post
    Hello Vagelis,

    Sorry, this is our omission. This is a remnant from the TIU site templates.
    Please look at Common/Templates/News/SingleNews.ascx and change the href attribute in the anchor to poit to the page where you have inserted the NewsList control.

    <a href="~/AboutUs/NewsAndEvents.aspx" class="astrong" runat="server">back to news <em>&raquo;</em></a>

    Alternatively, you can use the following code to insert a backward link to the newsList :

    <p><a href="<% = Request.UrlReferrer.ToString() %>" class="astrong" >back to news <em>&raquo;</em></a></p>

    Greetings,
    Rebecca
    the telerik team
  11. Vangelis
    Vangelis avatar
    153 posts
    Registered:
    07 Jan 2006
    05 Mar 2007
    Link to this post
    Why when I set to true I cannot view anything on newslist preview? By default it is set to false and it works ok (displays date, title and short description).

    Perhaps a little help on all options would be great?

    Regards

    Vagelis

  12. Vassil Daskalov
    Vassil Daskalov avatar
    261 posts
    Registered:
    18 May 2013
    06 Mar 2007
    Link to this post
    Hello Vagelis,

    The ReleaseDateOnly property is used to tell the NewsList control to show only content for a specific date. If you set it to true, then you will need set the SelectedDate property also, so that the NewsList control knows how to retrieve the content data to show. If you do not set the SelectedDate property, then the current day is set by default.

    Regards,
    Vassil Daskalov
    the telerik team
  13. Nitin
    Nitin avatar
    3 posts
    Registered:
    22 Aug 2008
    11 Nov 2009
    Link to this post
    Hello All,

    I am getting "The resource cannot be found" on news module sometimes not always. Somtimes I gets error if I try to refresh same page.
    Can you please help me.

    Thanks

    Nitin
  14. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    30 Sep 2016
    11 Nov 2009
    Link to this post
    Hi Nitin,

    What is the actual error message. The resource cannot be found is very common.

    All the best,
    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.
  15. Nitin
    Nitin avatar
    3 posts
    Registered:
    22 Aug 2008
    11 Nov 2009
    Link to this post
    Hello Ivan,

    In all news page if I clieck on one of the news item, then sometimes it shows the selected news in new page.
    But sometimes it shows above error.

    This happens also if I try to refresh New Item Detail page. Sometime it shows content and sometimes it shows error.

    I have SiteFinity 3.6 on my production server.

    Here is detail message 
     

    Server Error in '/' Application.

    The resource cannot be found.

    Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.


  16. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    30 Sep 2016
    11 Nov 2009
    Link to this post
    Hi Nitin,

    Most probably you do not have permissions to view the page or you have made some change to the content items and urlRewriteFormat specified in the web.config file. I am not able to reproduce similar problems with Sitefinity 3.7 SP1.

    Greetings,
    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.
  17. Nitin
    Nitin avatar
    3 posts
    Registered:
    22 Aug 2008
    11 Nov 2009
    Link to this post
    I can see the page. So permission issue or content chages will not be there I think.

    Also the web.config is correct.

    It shows page but issue is that sometime it give me page not found error, though I have not changed any thing.
  18. Georgi
    Georgi avatar
    3583 posts
    Registered:
    20 Sep 2016
    12 Nov 2009
    Link to this post
    Hi Nitin,

    Could you please try to spot a pattern when does this happen. For example, do you get the 404 error after the application start (the first time you load a page)? Do you have several NewsView controls on a page?

    Kind regards,
    Georgi
    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.
  19. Ravishankar Baranwal
    Ravishankar Baranwal avatar
    19 posts
    Registered:
    18 Mar 2009
    01 Nov 2010
    Link to this post
    I am using sitefinity in one of my website. News module is implemented very well but I am not getting the Search feachure for the news. If it is available please guide me. If not present how can i customise it. Please also let us know the table used to store the News details in sitefinity.
  20. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    01 Nov 2010
    Link to this post
    Hi Ravishankar Baranwal,

    Can you please let us know exactly which version of Sitefinity are you using? Search feature for news is available in Administration -> Services -> Search. You should follow the instructions for creating search indexes from our user guide. Instead of setting search patterns and and adding a page index as the source you will add a news index from the selection.

    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
  21. Ravishankar Baranwal
    Ravishankar Baranwal avatar
    19 posts
    Registered:
    18 Mar 2009
    02 Nov 2010
    Link to this post
    Thanks for the Reply. When creating a new then list of news comes in grid with date format like "10 Mar 2010 2:00 am" which is not appropriate for the US. This should be like "Mar 10 2010 2:00 AM". Please suggest what we need to do for this. 
  22. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    30 Sep 2016
    02 Nov 2010
    Link to this post
    Hello Ravishankar,

    The format is set through js depending on the Sys.CultureInfo.CurrentCulture. You can map the external template NewsItemsList.acx and modify the row shown below

    if (date && !isNaN(date)) {
     
    html = date._toFormattedString('dd MMM yyyy, hh:mm tt', Sys.CultureInfo.CurrentCulture);
     
    }


    Sincerely yours,
    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
  23. Ravishankar Baranwal
    Ravishankar Baranwal avatar
    19 posts
    Registered:
    18 Mar 2009
    03 Nov 2010
    Link to this post
    Hi I have a query in the News section. when I am creating the news and opening this in our user section page then we have some issues:
    1) When click on the news title it redirects to the new page that is created dynamiocaly.
     2) In our page of the user section the images of logo and others which should be on the header and footer not appearing.
    Please find the attachment. Please suggest some solution on this.
  24. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    30 Sep 2016
    03 Nov 2010
    Link to this post
    Hello Ravishankar,

    This is the default behavior of the control - when you click on an item you see it in full mode. The NewsView control is updated - we change its mode to "Details" but you are still on the same page and this is why you see the other data.

    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
  25. Ravishankar Baranwal
    Ravishankar Baranwal avatar
    19 posts
    Registered:
    18 Mar 2009
    03 Nov 2010
    Link to this post
    hi,

    see the following images, these are steps to  See the News.


    step 1:
    when a news page loaded  all news displayed ,here at this page we have applied master page. and this master page has logo. in upper left corner. (see the Image1.jpg)

     step 2:

    when i m clicking on the title (Any of News) this action redirect me on the new page  "News/09/12/10/Flight.aspx"

    but on this page , master page is same but Logo image is not coming what could be the reason ? please help.
    (see the Image2.jpg)
  26. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    30 Sep 2016
    03 Nov 2010
    Link to this post
    Hi Ravishankar,

    How did you add the logo on the master page? Could you check the link through a web browser tool?
    If you use css to add the image, your url should be relative to the images folder which should be inside the Theme folder. Another option is using a server control or GenericContent control where you can insert the entire head as an IContent item through GenericContent module.

    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
26 posts, 0 answered