create new tag
, view all tags

SID-02264: Tables in Discussion forum add-in

Status: Asked Asked TWiki version: Perl version:
Category: Server OS: Last update: 1 year ago

I have the DiscussionForumAddOn installed in a new web.

I have been trying to gt a DiscussionForumOverview to work in a similar way to the one in the Sandbox example. I tried this by cutting and pasting the code that I found there and it half-way works. It delivers the table headings for both Discussion Forums and Recently Updated Topics, but does not put them in table form. As well as meaning that it won't look right, it also means that I don't get anything that tells users where to add a new topic.

I assume that there is something that is not being inherited. I had the installation process done by my organisation's web support technician as I don't have access to the hosting platform. I assumed that he correctly followed the instructions in the overview. Is this telling me that something was missed, or is there another answer?

Below is the code that I pasted into the DiscussionForumOverview topic.

Thanks for your help, Jon

Discussion Forums

%STARTINCLUDE% %TABLE{ sort="off" }%

Forum Topics Last post
%SEARCH{ "META:FORM.*[D]iscussionForumForm" type="regex" topic="Forum*" nonoise="on" format="| %ICONURL{persons}% $formfield(Name)%BR% $formfield(Description) <span class="patternSearched TMLhtml TMLhtml">Searched: <b>\"META:FORM.*[D]iscussionTopicForm;META:FIELD.*Forum.*value=.$topic\" type=\"regex\" topic=\"$topic*\" excludetopic=\"DiscussionTopicTemplate\" order=\"modified\" nonoise=\"on\" format=\"$percntCALC{$SET(user, $wikiusername)$SET(date, $date)$SETM(num, +1)}$percnt\" separator=\"<nop>\"</b></span><span id="twikiNumberOfResultsContainer" class='TMLhtml TMLhtml' ></span><span id="twikiModifySearchContainer" class='TMLhtml TMLhtml' ></span><br /><div class="patternSearchResultCount TMLhtml TMLhtml">Number of topics: <span class="twikiSearchResultCount TMLhtml TMLhtml">0</span></div><!--/patternSearchResultCount--> | 0 | by |" }%

Recently Updated Topics

%TABLE{ sort="off" }%

Topic Last post
%SEARCH{ "META:FORM.*[D]iscussionTopicForm" type="regex" topic="Forum*" order="modified" reverse="on" limit="16" nonoise="on" format="| %ICONURL{bubble}% <a href=\"%SCRIPTURL{view}%/$web/$topic\" title=\"$summary\">$formfield(Title)</a> <span style=\"font-size: 70%; color: #808080\" class='TMLhtml TMLhtml' > in $formfield() by <nop>$createwikiname </span> | $date by $wikiusername |" }%

-- Jon Freeman - 2016-10-21

Discussion and Answer

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
Status Asked
Title Tables in Discussion forum add-in

TWiki version

Server OS

Web server

Perl version

Browser & version

Topic revision: r1 - 2016-10-21 - JonFreeman
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.