SID-02264: Tables in Discussion forum add-in
| Status: |
Asked |
TWiki version: |
|
Perl version: |
|
| Category: |
|
Server OS: |
|
Last update: |
9 years 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" }%
%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" }%
%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
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.