CINXE.COM
FrontForum Module - Wikidot - Free and Pro Wiki Hosting
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>FrontForum Module - Wikidot - Free and Pro Wiki Hosting</title> <script type="text/javascript" src="http://d3g0gp89917ko0.cloudfront.net/v--4b961b7cc327/common--javascript/init.combined.js"></script> <script type="text/javascript"> var URL_HOST = 'www.wikidot.com'; var URL_DOMAIN = 'wikidot.com'; var USE_SSL = true ; var URL_STATIC = 'http://d3g0gp89917ko0.cloudfront.net/v--4b961b7cc327'; // global request information var WIKIREQUEST = {}; WIKIREQUEST.info = {}; WIKIREQUEST.info.domain = "www.wikidot.com"; WIKIREQUEST.info.siteId = 648902; WIKIREQUEST.info.siteUnixName = "www"; WIKIREQUEST.info.categoryId = 4388021; WIKIREQUEST.info.themeId = 192065; WIKIREQUEST.info.requestPageName = "doc-modules:frontforum-module"; OZONE.request.timestamp = 1740001154; OZONE.request.date = new Date(); WIKIREQUEST.info.lang = 'en'; WIKIREQUEST.info.pageUnixName = "doc-modules:frontforum-module"; WIKIREQUEST.info.pageId = 22129709; WIKIREQUEST.info.lang = "en"; OZONE.lang = "en"; var isUAMobile = !!/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); </script> <script type="text/javascript"> require.config({ baseUrl: URL_STATIC + '/common--javascript', paths: { 'jquery.ui': 'jquery-ui.min', 'jquery.form': 'jquery.form' } }); </script> <meta http-equiv="content-type" content="text/html;charset=UTF-8"/> <meta http-equiv="content-language" content="en"/> <script type="text/javascript" src="http://d3g0gp89917ko0.cloudfront.net/v--4b961b7cc327/common--javascript/WIKIDOT.combined.js"></script> <script type="text/javascript" src="http://d3g0gp89917ko0.cloudfront.net/v--4b961b7cc327/common--bootstrap/3.0.0/bootstrap.min.js"></script> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> <link href="http://d3g0gp89917ko0.cloudfront.net/v--4b961b7cc327/common--fonts/awesome/3.2.1/font-awesome.min.css" rel="stylesheet"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style type="text/css" id="internal-style"> /* modules */ /* bootstrap */ @import url(http://d3g0gp89917ko0.cloudfront.net/v--4b961b7cc327/common--bootstrap/3.0.0/bootstrap.min.css); /* theme */ @import url(http://d3g0gp89917ko0.cloudfront.net/v--4b961b7cc327/common--theme/bootstrap-base/css/style.css); @import url(http://www.wdfiles.com/local--theme/wikidot-3-0-content/style.css); </style> <!-- HTML5 shim, for IE6-8 support of HTML5 elements --> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <script type="text/javascript" src="http://d3g0gp89917ko0.cloudfront.net/v--4b961b7cc327/common--javascript/skrollr.min.js"></script> <link rel="shortcut icon" href="/local--favicon/favicon.gif"/> <link rel="icon" type="image/gif" href="/local--favicon/favicon.gif"/> <link rel="apple-touch-icon" href="/common--images/apple-touch-icon-57x57.png" /> <link rel="apple-touch-icon" sizes="72x72" href="/common--images/apple-touch-icon-72x72.png" /> <link rel="apple-touch-icon" sizes="114x114" href="/common--images/apple-touch-icon-114x114.png" /> <link rel="alternate" type="application/wiki" title="Edit this page" href="javascript:WIKIDOT.page.listeners.editClick()"/> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-18234656-1']); _gaq.push(['_setDomainName', 'none']); _gaq.push(['_setAllowLinker', true]); _gaq.push(['_trackPageview']); _gaq.push(['old._setAccount', 'UA-68540-5']); _gaq.push(['old._setDomainName', 'none']); _gaq.push(['old._setAllowLinker', true]); _gaq.push(['old._trackPageview']); </script> <script type="text/javascript"> window.google_analytics_uacct = 'UA-18234656-1'; window.google_analytics_domain_name = 'none'; </script> <link rel="manifest" href="/onesignal/manifest.json" /> <script src="https://cdn.onesignal.com/sdks/OneSignalSDK.js" acync=""></script> <script> var OneSignal = window.OneSignal || []; OneSignal.push(function() { OneSignal.init({ appId: null, }); }); </script> </head> <body id="html-body"> <div id="skrollr-body"> <script type="text/javascript"> jQuery(document).ready(function() { if(!(/Android|iPhone|iPad|iPod|BlackBerry|Windows Phone/i).test(navigator.userAgent || navigator.vendor || window.opera)) { var s = skrollr.init(); } }); </script> <div class="topbar"> <nav class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".wikidot-menu-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <div class="site-name"> <a class="navbar-brand" href="/"></a> </div> <div class="site-subtitle"> your place on the web </div> <div class="loginStatus"> <a href="javascript:;" onclick="WIKIDOT.page.listeners.createAccount(event)" class="login-status-create-account btn">Create account</a> <span>or</span> <a href="javascript:;" onclick="WIKIDOT.page.listeners.loginClick(event)" class="login-status-sign-in btn btn-primary">Sign in</a> </div> </div> <div class="collapse navbar-collapse wikidot-menu-collapse"> <ul class="nav navbar-nav navbar-right"> <li class="dropdown"><a class="dropdown-toggle" href="" data-toggle="dropdown">Documentation <span class="caret"><span style="white-space: pre-wrap;"> </span></span><br /></a> <ul class="dropdown-menu"> <li><a href="/doc-wiki-syntax:start">Wiki syntax</a></li> <li><a href="/doc:quick-reference">Quick reference</a></li> <li><a href="/doc-modules:start">Modules</a></li> <li><a href="/doc-data-forms:start">Data forms</a></li> <li><a href="/doc:embedding">Embedding services</a></li> <li><a href="/doc:templates">Templates</a></li> <li><a href="/doc:searching">Searching</a></li> <li><a href="/doc:site-structure">Site structure</a></li> <li><a href="/doc:users">Managing users</a></li> <li><a href="/doc:layout-reference">Layout reference</a></li> <li><a href="/doc:video">Video tutorials</a></li> <li><a href="/doc:advertising">Advertising</a></li> <li><a href="/doc:api">Wikidot API</a></li> </ul> </li> <li class="dropdown"><a class="dropdown-toggle" href="" data-toggle="dropdown">Community sites <span class="caret"><span style="white-space: pre-wrap;"> </span></span></a> <ul class="dropdown-menu"> <li><a href="http://community.wikidot.com">Wikidot Community</a></li> <li><a href="http://handbook.wikidot.com">Wikidot Handbook</a></li> <li><a href="http://snippets.wikidot.com">Code snippets</a></li> </ul> </li> <li class="dropdown"><a class="dropdown-toggle" href="" data-toggle="dropdown">FAQ <span class="caret"><span style="white-space: pre-wrap;"> </span></span></a> <ul class="dropdown-menu"> <li><a href="/faq:user-accounts">User accounts</a></li> <li><a href="/faq:upgrades">Upgrades</a></li> <li><a href="/faq:site-features">Site features</a></li> <li><a href="/faq:private-sites">Private Sites</a></li> <li><a href="/faq:editing-pages">Editing Pages</a></li> <li><a href="/faq:technical">Technical</a></li> <li><a href="/faq:watching">Watching</a></li> </ul> </li> </ul> </div> </div> <div class="horizontal-scrollbar" data-start="width: 0%;" data-end="width: 100%"></div> </nav> </div> <div class="content-wrap"> <div class="container"> <div class="row"> <div class="col-md-3"> <div class="search-box"> <div id="search-top-box" class="form-search"> <form id="search-top-box-form" action="dummy" class="input-append"> <input id="search-top-box-input" class="text empty search-query" type="text" size="15" name="query" value="Search this site" onfocus="if(YAHOO.util.Dom.hasClass(this, 'empty')){YAHOO.util.Dom.removeClass(this,'empty'); this.value='';}"/><input class="button btn" type="submit" name="search" value="Search"/> </form> </div> </div> <nav role="navigation"> <div class="container"> <div class="navbar-header docs-navigation"> <a type="button" class="btn btn-default navbar-toggle docs-navigation-toggle" data-toggle="collapse" data-target=".doc-menu-collapse"> Table of Contents </a> </div> <div class="collapse navbar-collapse doc-menu-collapse doc-navigation-sidebar"> <h4 ><span>Listing and categorizing</span></h4> <ul> <li><a href="/doc-modules:listdrafts-module">ListDrafts</a></li> <li><a href="/doc-modules:listpages-module">ListPages</a></li> <li><a href="/doc-modules:countpages-module">CountPages</a></li> <li><a href="/doc-modules:listusers-module">ListUsers</a></li> <li><a href="/doc-modules:tagcloud-module">TagCloud</a></li> <li><a href="/doc-modules:pagecalendar-module">PageCalendar</a></li> <li><a href="/doc-modules:pagetree-module">PageTree</a></li> <li><a href="/doc-modules:backlinks-module">Backlinks</a></li> <li><a href="/doc-modules:wantedpages-module">WantedPages</a></li> <li><a href="/doc-modules:orphanedpages-module">OrphanedPages</a></li> <li><a href="/doc-modules:categories-module">Categories</a></li> </ul> <h4 ><span>Users, members</span></h4> <ul> <li><a href="/doc-modules:watchers-module">Watchers</a></li> <li><a href="/doc-modules:members-module">Members</a></li> <li><a href="/doc-modules:join-module">Join</a></li> <li><a href="/doc-modules:sendinvitations-module">SendInvitations</a></li> <li><a href="/doc-modules:whoinvited-module">WhoInvited</a></li> </ul> <h4 ><span>Miscellaneous</span></h4> <ul> <li><a href="/doc-modules:css-module">CSS</a></li> <li><a href="/doc-modules:newpage-module">NewPage</a></li> <li><a href="/doc-modules:clone-module">Clone</a></li> <li><a href="/doc-modules:redirect-module">Redirect</a></li> <li><a href="/doc-modules:themepreviewer-module">ThemePreviewer</a></li> <li><a href="/doc-modules:mailform-module">MailForm</a></li> <li><a href="/doc-modules:petitionadmin-module">PetitionAdmin</a></li> <li><a href="/doc-modules:sitegrid-module">SiteGrid</a></li> <li><a href="/doc-modules:featuredsite-module">FeaturedSite</a></li> </ul> <h4 ><span>News & feeds</span></h4> <ul> <li><a href="/doc-modules:feed-module">Feed</a></li> <li><a href="/doc-modules:frontforum-module">FrontForum</a></li> </ul> <h4 ><span>Forum & discussion</span></h4> <ul> <li><a href="/doc-modules:comments-module">Comments</a></li> <li><a href="/doc-modules:recentposts-module">RecentPosts</a></li> <li><a href="/doc-modules:minirecentthreads-module">MiniRecentThreads</a></li> <li><a href="/doc-modules:miniactivethreads-module">MiniActiveThreads</a></li> <li><a href="/doc-modules:minirecentposts-module">MiniRecentPosts</a></li> </ul> <h4 ><span>Page rating</span></h4> <ul> <li><a href="/doc-modules:rate-module">Rate</a></li> <li><a href="/doc-modules:ratedpages-module">RatedPages</a></li> </ul> <h4 ><span>Photos, galleries, files</span></h4> <ul> <li><a href="/doc-wiki-syntax:images#gallery">Gallery</a></li> <li><a href="/doc-modules:flickrgallery-module">FlickrGallery</a></li> <li><a href="/doc-modules:files-module">Files</a></li> </ul> <h4 ><span>Searching</span></h4> <ul> <li><a href="/doc-modules:search-module">Search</a></li> <li><a href="/doc-modules:searchall-module">SearchAll</a></li> <li><a href="/doc-modules:searchusers-module">SearchUsers</a></li> </ul> <h4 ><span>Changes</span></h4> <ul> <li><a href="/doc-modules:sitechanges-module">SiteChanges</a></li> </ul> <h4 ><span>Deprecated</span></h4> <ul> <li><a href="/doc-modules:adsenseunit-module">AdSenseUnit</a></li> <li><a href="/doc-modules:membershipapply-module">MembershipApply</a></li> <li><a href="/doc-modules:membershipbypassword-module">MembershipByPassword</a></li> <li><a href="/doc-modules:pages-module">Pages</a></li> <li><a href="/doc-modules:childpages-module">ChildPages</a></li> <li><a href="/doc-modules:pagesbytag-module">PagesByTag</a></li> <li><a href="/doc-modules:nextpreviouspage-module">NextPage</a></li> <li><a href="/doc-modules:nextpreviouspage-module">PreviousPage</a></li> <li><a href="/doc-modules:managesite-module">ManageSite</a></li> </ul> </div> </div> </nav> </div> <div class="col-md-9"> <div class="page-title"> FrontForum Module </div> <div class="breadcrumb"> <a href="/doc:start">Documentation</a> » <a href="/doc-modules:start">Modules</a> » FrontForum Module </div> <div id="page-content"> <h2 id="toc0"><span>Description</span></h2> <p>Uses forum discussions to create news system (with comments) to put on the pages. Also can create RSS feeds.</p> <p>In more details - each new forum thread from selected forum categories is used to create new news item (first post makes the body). Several parameters allow customization.</p> <p>If RSS feed is created a link will also be put into the document head (feed info should appear in browsers automatically) and below the news items.</p> <h2 id="toc1"><span>Attributes</span></h2> <table class="wiki-content-table"> <tr> <th>attribute</th> <th>required</th> <th>allowed values</th> <th>default</th> <th>description</th> </tr> <tr> <td>category</td> <td>yes</td> <td>semicolon-separated integers</td> <td>none</td> <td>numerical IDs of the forum categories (look at the URL address); multiple categories can be used to create news</td> </tr> <tr> <td>feed</td> <td>no</td> <td>alphanumeric</td> <td>none</td> <td>if present - RSS feed will be created with the filename equal to its value</td> </tr> <tr> <td>feedTitle</td> <td>no</td> <td>string</td> <td>"<em>sitename</em> feed"</td> <td>title of the feed</td> </tr> <tr> <td>limit</td> <td>no</td> <td>number</td> <td>20</td> <td>how many items should be displayed</td> </tr> <tr> <td>offset</td> <td>no</td> <td>number</td> <td>0</td> <td>how many items to omit from the beginning?</td> </tr> <tr> <td>fixRelativeLinks</td> <td>no</td> <td>true</td> <td>none</td> <td>fixes links for forum posts if you're using categories from external forums, e.g. Wikidot News / Changelog etc.</td> </tr> </table> <p><strong>Category IDs</strong> can be found when looking at the URL address of the page which lists the threads in the category. It looks like this:</p> <p>http://community.wikidot.com/forum/c-<strong>12</strong>/bugs-and-problems</p> <p>So in this case the category ID is <strong>12</strong>.</p> <h2 id="toc2"><span>Item format</span></h2> <p>A custom format for displaying news items can be chosen. To specify a custom format one should use module invocation:</p> <div class="code"> <pre> <code>[[module FrontForum category="..."]] <custom format> [[/module]]</code> </pre></div> <p>where the inner <tt><custom format></tt> element is any block of text following the wiki-syntax, where special variables can be used:</p> <table class="wiki-content-table"> <tr> <th>variable</th> <th>aliases</th> <th>description</th> </tr> <tr> <td><tt>%%title%%</tt></td> <td></td> <td>title of the news item</td> </tr> <tr> <td><tt>%%linked_title%%</tt></td> <td><tt>%%title_linked%%</tt></td> <td>title of the news item linking to the original forum thread</td> </tr> <tr> <td><tt>%%link%%</tt></td> <td></td> <td>URL pointing to the original forum thread</td> </tr> <tr> <td><tt>%%author%%</tt></td> <td></td> <td>prints author of the thread</td> </tr> <tr> <td><tt>%%date%%</tt></td> <td></td> <td>prints posting date</td> </tr> <tr> <td><tt>%%date|<em>format</em>%%</tt></td> <td></td> <td>prints posting date with a custom format. Most tokens from php's <a href="http://php.net/manual/en/function.strftime.php">strftime</a> are accepted. You may find <a href="http://community.wikidot.com/howto:frontforum-date-variable">the howto</a> contributed by community useful.</td> </tr> <tr> <td><tt>%%comments%%</tt></td> <td></td> <td>number of comments = number of threads posts - 1</td> </tr> <tr> <td><tt>%%category%%</tt></td> <td></td> <td>forum category where the thread belongs (linked)</td> </tr> <tr> <td><tt>%%description%%</tt></td> <td><tt>%%short%%</tt>, <tt>%%summary%%</tt></td> <td>short summary of the item</td> </tr> <tr> <td><tt>%%content%%</tt></td> <td><tt>%%text%%</tt>, <tt>%%long%%</tt>, <tt>%%body%%</tt></td> <td>full content of the item (post)</td> </tr> </table> <p>The default format is:</p> <div class="code"> <pre> <code>+ %%linked_title%% by %%author%% %%date|%O ago (%e %b %Y, %H:%M %Z)%% %%content%% %%comments%% | category: %%category%%</code> </pre></div> <h2 id="toc3"><span>Examples</span></h2> <p>The news from the <a href="/start">main Wikidot site</a> use the following code to produce both the news on the main site and a feed:</p> <div class="code"> <pre> <code>[[module FrontForum category="8" feed="news" feedTitle="Wikidot site news"]] ++ %%linked_title%% %%date|%e %b %Y, %H:%M %Z (%O ago)%% %%content%% %%comments%% | category: %%category%% [[/module]]</code> </pre></div> <p>You should change the <tt>category</tt> and <tt>feedTitle</tt> parameters of course to match your own Site.</p> </div><div id="action-area" style="display: none;"></div> </div> </div> </div> <div class="page-options-container container"> </div> </div> <div class="footer"> <div class="container"> <div class="row"> <div class="col-sm-6"><img src="https://www.wikidot.com/common--theme/wikidot30/images/amazon.png" alt="amazon.png" class="image" /></div> <div class="col-sm-3"> <p><a href="http://blog.wikidot.com">Official Wikidot blog</a></p> <p><a href="http://community.wikidot.com">Community</a></p> <p><a href="/doc">Documentation</a></p> </div> <div class="col-sm-3"> <p><a href="/about">About Wikidot</a></p> <p><a href="http://shop.wikidot.com">Gift Shop</a></p> <p><a href="/legal:terms-of-service">Terms of Service</a></p> <p><a href="/legal:privacy-policy">Privacy policy</a></p> </div> </div> </div> <div class="container license-area"> Copyright 漏 All Rights Reserved, Wikidot Inc. 2025 </div> </div> </div> <div id="dummy-ondomready-block" style="display: none;" ></div> <!-- Google Analytics load --> <script type="text/javascript"> (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> <div id="page-options-bottom-tips" style="display: none;"> <div id="edit-button-hovertip"> Click here to edit contents of this page. </div> </div> <div id="page-options-bottom-2-tips" style="display: none;"> <div id="edit-sections-button-hovertip"> Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available. </div> <div id="edit-append-button-hovertip"> Append content without editing the whole page source. </div> <div id="history-button-hovertip"> Check out how this page has evolved in the past. </div> <div id="discuss-button-hovertip"> If you want to discuss contents of this page - this is the easiest way to do it. </div> <div id="files-button-hovertip"> View and manage file attachments for this page. </div> <div id="site-tools-button-hovertip"> A few useful tools to manage this Site. </div> <div id="backlinks-button-hovertip"> See pages that link to and include this page. </div> <div id="rename-move-button-hovertip"> Change the name (also URL address, possibly the category) of the page. </div> <div id="view-source-button-hovertip"> View wiki source for this page without editing. </div> <div id="parent-page-button-hovertip"> View/set parent page (used for creating breadcrumbs and structured layout). </div> </div> </body> </html>