Forums

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity 3.x: 3.x Pre-release forums (retired) > News Module Question

News Module Question

  • medicalwebgeek Intermediate avatar

    Posted on Feb 20, 2007 (permalink)

    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)?

    Reply

  • Posted on Feb 20, 2007 (permalink)

    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?

    Reply

  • Rebecca Rebecca admin's avatar

    Posted on Feb 23, 2007 (permalink)

    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

    Reply

  • medicalwebgeek Intermediate avatar

    Posted on Feb 28, 2007 (permalink)

    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?

    Reply

  • Rebecca Rebecca admin's avatar

    Posted on Mar 1, 2007 (permalink)

    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

    Reply

  • medicalwebgeek Intermediate avatar

    Posted on Mar 1, 2007 (permalink)

    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?

    Reply

  • Rebecca Rebecca admin's avatar

    Posted on Mar 2, 2007 (permalink)

    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

    Reply

  • medicalwebgeek Intermediate avatar

    Posted on Mar 2, 2007 (permalink)

    It was set to news-details.aspx.  I changed it to ~/news-details.aspx and it seems to be working fine now.

    Thanks.

     

    Reply

  • Vangelis Intermediate avatar

    Posted on Mar 4, 2007 (permalink)

    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

    Reply

  • Rebecca Rebecca admin's avatar

    Posted on Mar 5, 2007 (permalink)

    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

    Reply

  • Vangelis Intermediate avatar

    Posted on Mar 5, 2007 (permalink)

    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

    Reply

  • Vassil Daskalov Vassil Daskalov admin's avatar

    Posted on Mar 6, 2007 (permalink)

    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

    Reply

  • Nitin avatar

    Posted on Nov 11, 2009 (permalink)

    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

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Nov 11, 2009 (permalink)

    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.

    Reply

  • Nitin avatar

    Posted on Nov 11, 2009 (permalink)

    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.


    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Nov 11, 2009 (permalink)

    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.

    Reply

  • Nitin avatar

    Posted on Nov 11, 2009 (permalink)

    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.

    Reply

  • Georgi Georgi admin's avatar

    Posted on Nov 12, 2009 (permalink)

    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.

    Reply

  • Ravishankar Baranwal avatar

    Posted on Nov 1, 2010 (permalink)

    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.

    Reply

  • Radoslav Georgiev Radoslav Georgiev admin's avatar

    Posted on Nov 1, 2010 (permalink)

    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

    Reply

  • Ravishankar Baranwal avatar

    Posted on Nov 2, 2010 (permalink)

    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. 

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Nov 2, 2010 (permalink)

    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

    Reply

  • Ravishankar Baranwal avatar

    Posted on Nov 3, 2010 (permalink)

    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.
    Attached files

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Nov 3, 2010 (permalink)

    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

    Reply

  • Ravishankar Baranwal avatar

    Posted on Nov 3, 2010 (permalink)

    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)
    Attached files

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Nov 3, 2010 (permalink)

    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

    Reply

  • Register for webinar
Skip Navigation LinksHome / Developer Network / Forums / Sitefinity 3.x: 3.x Pre-release forums (retired) > News Module Question