Display Archived News Stories

Modified on Wed, 25 May 2016 at 11:27 AM

When the expiration date passes on your news stories, you may still want them to be available to your customers in the form of archives. The following call will display all news stories in a tabular fashion

myss_ShowNewsArchives(newsmonth, newsyear, target);

The following is an explanation of each parameter and their possible values:

1) newsmonth: (string) a blank value indicates to use all months. Otherwise, a number from 1-12 should be passed. 1 represents January, 2 – February, etc..
2) newsyear: (integer) this is the year you would like to display all news stories for.
3) target: (string) this is the ID of the HTML element in which to display the news stories in.

EXAMPLE HTML CODE:

<div id="myss_news" style="width: 100%;"></div>
<script type="text/javascript">myss_ShowNewsArchives('', '2013', '#myss_news')</script>

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article