Bert's Test Wiki
Advertisement
DCDBFeed

A Discussions Activity Feed from the DC Database

The Discussions Activity Feed can be added to any wiki page, and showcases recent posts from Discussions.

Add the feed by using the tag <discussions />. Parameters are available to make adjustments to the layout and content shown on the feed. See below for details. Configuring the feed to showcase a specific category or categories is an ideal way to draw attention to specific types of conversations on your community.

The feed will dynamically adjust to the width of the page, or to the width of the container in which is is placed. If placing the feed in the main page right column or a similarly narrow container, it is best to use the one-column layout.

Parameters[]

Type Syntax Options Default setting
Layout options
Number of columns columns="[number of columns]" Can be 1 or 2 1
Number of posts size="[number of posts]" Minimum is 3
Maximum is 6
5
Content options
Sort
('Trending' or 'Latest')
mostrecent="true"
Adding this parameter will sort the feed according to the date of the first post (i.e. Latest) false (Trending is the default)
Category filter catid="[category ID]"
Multiple categories can be listed by separating individual IDs with commas. See below for details on how to determine a category's ID With no ID or IDs specified, the feed will include content from all categories.

Finding the category ID[]

To find the ID of a Discussions category, simply filter the main Discussions list to show only that category. Then look at the URL displayed in the browser's address bar. The category ID is a string of numbers displayed after ?catId=

FalloutWikiCategoryURL

A Discussions category ID shown in the browser address bar, after filtering the view for a specific category.


Examples[]

<discussions />
will display the top six trending posts from all categories in a single column

<discussions columns="2" />
will display the top six trending posts from all categories in a two-column layout

<discussions columns="2" size="4" />
will display the top four trending posts from all categories in a two-column layout

<discussions columns="2" size="4" mostrecent="true" />
will display the four most recent posts from all categories in a two-column layout

<discussions columns="2" size="4" mostrecent="true" catid="2817509675979769579" />
will display the four most recent posts from a specific category in a two-column layout

<discussions columns="2" size="4" mostrecent="true" catid="2817509675979769579,172635465752212678" />
will display the four most recent posts from two specific categories in a two-column layout

Advertisement