Extension:Dynamic Article List
|
Dynamic Article List Release status: beta |
|||
|---|---|---|---|
| Implementation | Tag | ||
| Description | Provide add-on sort ability among all posted articles on four types of Dynamic Article List | ||
| Author(s) | Zengji, Onestone | ||
| Last version | 2.0 (2013-05-01) | ||
| MediaWiki | 1.20+ | ||
| PHP | 5+ | ||
| Database changes | No | ||
| License | No license specified | ||
| Download | external DOWNLOAD | ||
|
|||
| Check usage and version matrix | |||
DynamicArticleList is an extension designed to provide add-on sort ability among all posted articles. Now four types of Dynamic Article List have been implemented:
- Newly Posted Articles
- Recently Updated Articles
- Recent Discussions
- Most Popular Articles
User could easily find the latest or most popular topics cross site with the help of Dynamic Article List.
This extension is written with the help from Dynamic Page List.
Contents |
Installation [edit]
- Download and extract the files in a directory called "
Dynamic Article List" in your extensions/ folder. - Add the following code to your LocalSettings.php (at the bottom)
require_once( "$IP/extensions/Dynamic Article List/Dynamic Article List.php" );
Done – Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.
Usage [edit]
Tag and its parameters [edit]
| Tag Name | DynamicArticleList | |
| Parameters | title (optional) | Title of the output article list |
| type (optional) | Type of dynamic article list (new/update/discussion/hot) | |
| count (optional) | Output count of articles | |
| categoryRoot (optional) | Name of category where (including its children) all articles reside | |
- If "categoryRoot" is set, Dynamic Article List will only retrieve articles in this category and its children. If not, all articles will be candidates.
- The value of parameter "type" could be one of the following (default is new ):
- new => Newly Posted Articles
- update => Recently Updated Articles
- discussion => Recent Discussions
- hot => Most Popular Articles
- The default value of "count" is 5 .
Samples [edit]
A sample snapshot of Dynamic Article List is shown below.
When "type" is set to new ,
The output record format would be Page Title (author) - [create time]
When "type" is set to update or discussion ,
The output record format would be Page Title (last editor) - [update time]
The underlying wiki codes are:
<DynamicArticleList> title=Newly Posted Articles type=new count=512412412412 </DynamicArticleList>
Another sample snapshot of Dynamic Article List is shown below.
When "type" is set to hot ,
The output record format would be Page Title - (accessed times)
The underlying wiki codes are:
<DynamicArticleList> title=Most Popular Articles type=hot count=5 </DynamicArticleList>

