Fullscreen
[Show/Hide Left Column]
[Show/Hide Right Column]

Display multiple articles in a wiki page
3d browser Print

Plugin Articles

Use this Wiki Plugin to include any number of articles into a wiki page. For a plugin that includes components of a single article, see pluginArticle. This is particularly useful if you want to include the top 2 articles into your homepage, but being anyway able to write some custom Wiki text.

For a quick summary of a list of articles you can also use pluginModule to display Module last_articles.

Usage

To display articles in a wiki page, use the syntax:
ARTICLES(max=>3, topic=>tw,topicId=>1, type=>news, categId=>1, lang=>en, sort=>lastModif_asc)}{ARTICLES}


Param Values Defaults Req ? Explanation Since
max Numeric Meant to control number of articles
topic string Filter on the topics. Example: 'News', '!News', 'News+Events', '!News+Events'
topicId string Filter on topic Ids. Example: '1', '!1', '1+2', '!1+2' 1.10
type string Filter on the types. Example: 'Article', '!Article', 'Article+Review', '!Article+Review'
categId Numeric Filter on the category Id
lang String(en,fr,en_uk...) Language 1.9.7
sort String(columnName_asc or columnName_desc where columnName is a column name (lastModif) or random sort on column asc or desc 1.10
random String(y,n) Picks a certain number of articles randomly, depending of the max value 3.0
start Numeric List starts with this article number 5.0
fullbody y or n set to y or n, and specifies whether the whole Article is displayed versus just the Header and Title 5.0
dateStart, dateEnd date using a YYYY-MM-DD format, Articles with their publish date greater than dateStart and less than or equal to dateEnd are included 5.0
overrideDates y or n this should be set to y so that if the Type parameters "Show before publish date" or "Show after expire date" have not been set the appropriate Articles can still be extracted using dateStart and dateEnd values which may be 'outside' the publish or expire dates 5.0
containerClass text text that specifies a css class style used to style the resultant display 5.0


Example

In this example below, a wiki page is shown including the articles plugin, so that last articles are shown below the "! News" heading of the page:



In that example, the syntax was:
{ARTICLES(max=>5,topicId=>!5)}{ARTICLES}


When topic="!New+Events', only the articles that have not a topic News or a topic Events will be displayed. You can put as many topics you want by separating them with the character '+'.The character '!' means not - It can be only on first place. Do not put space around the separator.

Multilingualism

The multilinguism is managed on 2 aspects:
  • If you have selected the multilingualism and best_language features, and when this plugin is inserted in a page that has a defined language, some articles can be filtered out. For each set of translations, when one article of this set has the same language as the page language, only this article in the set will be displayed. Please note that you can still see an article of another language, if this article is not in a set of translations or if this set of translations has no article in the page language.
  • If you use the parameter lang, only the articles in this language will be shown




Contributors to this page: lindon1699 points  , eromneg148 Punkte  , Urbizzness41 points  , aproulx338 points  , Xavi26097 points  , mlpvolt1661 Punkte  , marclaporte4506 pistettä  , luci1342 Punkte  and sylvie3000 pistettä  .
Page last modified on Thursday 25 February, 2010 03:36:37 UTC by lindon1699 points .

To register

To have an account at this site, please register at Tikiwiki.org (external link), and then use that user name and password to log in here.

Find by Page Name

Exact match

Keywords

The following is a list of keywords that should serve as hubs for navigation within the Tiki documentation and should correspond to development keywords (bug reports and feature requests):

Accessibility (WAI – 508)
Action log 2.x
Alert 3.x
Articles & Submissions
Backlinks
Banners
Blog
Bookmark
Browser Compatibility
Cache
Calendar
Category
Chat
Clean URLs
Comments
Communication Center
Compression (gzip)
Contacts Address book
Contact us
Content template
Contribution 2.x
Cookie
Copyright
Custom Home (and Groups Home Page)
Date and Time
Debugger Console
Directory (of hyperlinks)
Documentation link from Tiki to doc.tikiwiki.org (Help System)
DogFood
Dynamic Content
Dynamic Variable
External Authentication
FAQ
Featured links
File Gallery
Forum
Friendship Network (Community)
Gmap Google maps
Groups
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interaction
Inter-User Messages
InterTiki
Karma
Live Support
Login
Look and Feel
Lost edit protection
Mail-in
Map with Mapserver
Menu
Meta Tags
Mobile Tiki and Voice Tiki
Mods
Module
MultiTiki
MyTiki
Newsletter
Notepad
Payment
Performance Speed / Load
Permissions
Platform independence (Linux-Apache, Windows/IIS, Mac, BSD)
Polls
Profile Manager
Quicktags
Quiz
Rating
Feeds
Score
Search engine optimization
Search
Security
Semantic links 3.x
Shadowbox
Shoutbox
Slideshow
Smarty Template
Smiley
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Stats
Surveys
System log
Tags 2.x
Task
Tell a Friend + Social Bookmarking 2.x
TikiTests 2.x
Theme
Trackers
TRIM
User Administration including registration and banning
User Files
User Menu
Watch
WebHelp
Webmail
Webservices
Wiki 3D
Wiki History, page rename, etc
Wiki Page Staging and Approval 2.x
Wiki Plugins extends basic syntax
Wiki Syntax
Wiki structure (book and table of content)
WYSIWYCA
WYSIWYG 2.x
XMLRPC