Loading...
 

ModuleLastArticles

Intro

This is a module to show the last posted articles.

The module is called last_articles and has the usual parameters

  • nonums
  • rows
  • type - optional string value to filter down to all articles of a specific type
  • topic - optional string value to filter down to all articles of a specific topic
  • topicId - optional numeric value to filter down to all articles of a specific topicId
  • categId - optionnal category ID (tw >= 1.9.8)
  • lang - optional langauge(ex:en) (tw >= 1.9.8)


For type, topic and topicId you can inverse the search (to get all articles excluding the specified ones), just prepend a ! to the name or number of the type/topic/topicId.

Display latest articles of type Event and Review:

Copy to clipboard
{MODULE(module=>last_articles,type=>Event+Review)}{MODULE}

Display latest articles that do NOT have the topicId 3, 4 and 8 ( the ! in front negates the definition):

Copy to clipboard
{MODULE(module=>last_articles,topicId=>!3+4+8)}{MODULE}

These optional parameters can be used together, too:

Copy to clipboard
{MODULE(module=>last_articles,type=>Article,topicId=>5+8)}{MODULE}

))TikiTeam((

ohertel


Page last modified on Thursday 15 March 2007 16:04:20 GMT-0000