// Force dyanmic for the pagination request.element.isStatic = 0; newsItems = attributes.elementInfo.elementData.propertyValues; // Init the pagination variables itemPerPage = application.ptNews.appConfig.listing_records_per_page; if ( NOT StructKeyExists(request.params, "page") ) request.params.page = 1; // Check if the News Archive filters are defined newsFilterURLParams = ""; if ( StructKeyExists(request.params, "year") ) newsFilterURLParams = ListAppend(newsFilterURLParams, "year=#request.params.year#", "&"); if ( StructKeyExists(request.params, "month") ) newsFilterURLParams = ListAppend(newsFilterURLParams, "month=#request.params.month#", "&"); if ( StructKeyExists(request.params, "categoryid") ) newsFilterURLParams = ListAppend(newsFilterURLParams, "categoryid=#request.params.categoryid#", "&"); // Build the pagination data paginateData = application.ptNews.utils.buildPaginationStruct(page=request.params.page, itemCount=ArrayLen(newsItems), pageSize=itemPerPage, URLparams=newsFilterURLParams); currNews = newsItems[newsIndex]; // Get the News Category data categoryData = application.ptNews.newsDAO.getNewsCategoryList(categoryIDList=currNews.Values.categories);

#currNews.Values.title#

#DateFormat(currNews.Values.publicationDate, "long")#

#currNews.Values.abstract#

Categories: #Replace(catListDisplay, ",", ", ", "all")#

<< Prev    #paginateData.resultsCount#    Next >>

No News Articles to Display.