Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 5 of 5

Thread: News Summary Question

  1. #1
    stefanus_avasoft is offline Junior Member
    Join Date
    Dec 2010
    Posts
    4

    Default News Summary Question

    Hi All,

    I have one question about the news summary tag. Currently, it just show 3 news list and have "more" link to see all the news.

    I want to change the list to view 5 news list. Do you have any experience with this? Please share about this

    Thank you for your help before. Here is the site URL:
    http://safetyeffects.stagingreview.com/


    Kind Regards,
    Stefanus

  2. #2
    ASPAlfred is offline Senior Member
    Join Date
    Nov 2007
    Posts
    2,244

    Default

    I got your ticket in support, thanks for posting this here.

    This is pretty easy to achieve. Open news.xml.config file in {root}/XMLPackages folder, then do this change:

    from:
    Code:
    <queryparam paramname="@NumHomeNewsToDisplay" paramtype="runtime" requestparamname="NumHomeNewsToDisplay" sqlDataType="int" defvalue="3"  validationpattern="" />
    to:
    Code:
    <queryparam paramname="@NumHomeNewsToDisplay" paramtype="runtime" requestparamname="NumHomeNewsToDisplay" sqlDataType="int" defvalue="5"  validationpattern="" />
    defvalue - adjust this according to the number of news summary you want to display on the home page.
    Last edited by ASPAlfred; 12-30-2010 at 10:10 PM.

  3. #3
    stefanus_avasoft is offline Junior Member
    Join Date
    Dec 2010
    Posts
    4

    Default

    Hi Alfred,

    Thank you for your response

    By the way, I have changed the value in news.xml.config to "5" like your suggest. But it seems it still show 3 news list in home page

    http://safetyeffects.stagingreview.com/

    I also have reset the cache from browser and from the site too. Is there something that I need to do again?

    Please find news.xml.config file as enclosed

    Please kindly advice. Thank you


    Regards,
    Stefanus
    Attached Files Attached Files

  4. #4
    stefanus_avasoft is offline Junior Member
    Join Date
    Dec 2010
    Posts
    4

    Default

    Hi Aflred,

    I'm forgot to mention, I use this tag to show the news summary in the template

    (!NEWS_SUMMARY!)



    Thank you,
    Stefanus

  5. #5
    mkennerley is offline Junior Member
    Join Date
    Jan 2011
    Posts
    1

    Default News Summary Article Amount

    We had this same trouble.

    Turns out its actually hardcoded in Parser.cs in AspDotNetStorefrontCore on about line 138:

    m_StaticTokens.Add("(!NEWS_SUMMARY!)", AppLogic.GetNewsSummary(5));

    Mark