Loading...
 
Skip to main content

History: Module articles

Source of version: 19

Copy to clipboard
            !Module articles
Use the __Articles__ module to include a list of articles in a wiki page. Unlike the ((Module last_articles|last_articles)) and ((Module top_articles|top_articles)) modules and the plugin ((PluginArticles)), the __Articles__ module will show only the article's title.
!! Usage
To use the Articles module in a wiki page:
{CODE()}
{MODULE(module=articles,max=XXX,topic=XXX) /} 
{CODE}

Where:
{FANCYTABLE(head=__Parameter__ ~|~ __Value__ ~|~ __Description__ ~|~ __Default__ ~|~ __Optional__~|~__Version__)}
__max__ ~|~ numeric~|~The maximum number of articles to display~|~10~|~optional~|~
__topic__ ~|~topic name to include; separate multiple names with "+"; place "!" in front of topic name or list to exclude~|~Show or exclude articles of a specific [Articles&bl#Topics|topic]~|~any~|~optional~|~
__topicId__ ~|~topic Id to include; separate multiple Id's with "+"; place "!" in front of Id or list of Id's to exclude~|~Show only articles of a specific [Articles&bl#Topics|topic] In tiki>8, if topicId=0, will show the articles of the topic of the current article.~|~any~|~optional~|~
__sort__ ~|~column_asc or column_desc~|~Sort~|~publishDate_desc~|~optional~|~
__lang__ ~|~language abbreviation like en~|~Show only articles of the language~|~any~|~optional~|~
__more__ ~|~y or n~|~Show a "More..." to the Articles Homepage at bottom of list~|~ n ~|~ optional~|~
__type__ ~|~article type to include; separate multiple types with "+"; place "!" in front of type or list of types to exclude~|~Show only articles or the type~|~any~|~optional~|~
__start__ ~|~numeric~|~Skips this many articles before the list starts~|~0~|~optional~|~
__categId__ ~|~category ID~|~Show only articles having this category~|~any~|~optional~|~
__showcreated__~|~y or n~|~shows date of creation~|~n~|~optional~|~2.0
__showpubl__~|~y or n~|~shows publication date~|~n~|~optional~|~4.0
__title__~|~string~|~customize the header for the list (use title="" for no title)~|~Articles~|~optional~|~3.0
{FANCYTABLE}

If you want to show all the articles of the topic a or the topic b, tou need to use topic=a+b. If you want not to display the articles except those with topic a or b, you need to use topic=!a+b. The same feature and syntax applies for topicId and type.

!! Example
This code:
{CODE(wrap="1")}{BOX(bg=>white)}{MODULE(module=articles, more=y, max=5, start=1, title=Most Recent Articles, topic=!News+Help Wanted) /}{BOX}{CODE}
{SPLIT(colsize=>30%|20%|20%)}
Produces on this site:
{MODULE(module=articles, more=y, max=5, start=1, title=Most Recent Articles, topic=!News+Help Wanted) /}
---
%%%
{BOX(bg=>white)}''Note that article types News and Help Wanted are excluded, the first article of an included type is skipped, and a custom title is used. Click on the "More..." link for the complete list of articles to see how the articles were filtered.''{BOX}
---
%%%
{SPLIT}
!! Related Pages
{include page="Module and Plugin Includes" start="startinclude1a" stop="stopinclude1a"}

        

History

Information Version
Baraka Kinywa 21
Baraka Kinywa 20
Yves Kipondo 19
sylvie 18
lindon 16
lindon Code Plugin modified by editor. 15
Geoff Brickell 14
lindon 13
lindon clean up and add description for toc 12
lindon added description, clean up 11
sylvie 10
sylvie 9
sylvie 8
sylvie 7
sylvie 6
sylvie 5
sylvie 4
sylvie 3
Rick Sapir / Tiki for Smarties 2
Xavier de Pedro 1