Difference between revisions of "WSU Technology Knowledge Base:Adding Dynamic Page Lists to Articles"

From WSU Technology Knowledge Base
Jump to navigation Jump to search
Line 23: Line 23:
 
category = D2L
 
category = D2L
 
count = 5
 
count = 5
 +
ordermethod = created
 
order = ascending
 
order = ascending
 
addfirstcategorydate = true
 
addfirstcategorydate = true

Revision as of 15:03, 2 March 2012

The DynamicPageList extension allows authors to use categories to automatically generate dynamic bullet lists of links to other wiki articles. This is an easy way to create a "Related Links" section in a wiki article. The lists are dynamic in that they are created each time an article loads and will automatically update depending on the configuration of this list. DP lists differ from SubPageLists or SP lists in that categories, not sub-directories, are used to populate the lists.

  • By default, DP lists select articles for inclusion based on the date and time that they were added to the category. The most recently added articles are selected. Note that this is not necessarily the same as selecting the most recently created or modified articles. This selection process can be changed (e.g., select the most recently created articles) by specifying a different ordermethod. Other order methods include lastedit, length, and created.
  • Multiple categories can be specified, resulting in a list of articles selected from those that are members of all categories listed (e.g., Graphics and Adobe). If multiple categories are specified, DP lists select the articles that were most recently added to the first category. Again, the ordermethod can be changed.

Example 1 - Listing Five of the Most Recently Created Articles in the

Here is a simple example of a DP list that displays This code...

<DynamicPageList>
category = D2L
count = 5
ordermethod = created
order = ascending
addfirstcategorydate = true
</DynamicPageList>

...generates this list

No pages meet these criteria.

Related Links