You are here: Foswiki>Tasks Web>Item10353 (06 Jan 2015, GeorgeClark)Edit Attach

Item10353: Enhance WebTopicList page with more info

pencil
Priority: Enhancement
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: FoswikiUsability
Branches:
Reported By: VickiBrown
Waiting For:
Last Change By: GeorgeClark
Where I work, I have enhanced the WebTOpicList page in many webs by adding the followingcoe

---+ <nop>%WEB% Web Topic List
There are %CALC{$SET(topics, $LISTSIZE(%TOPICLIST{separator=", "}%))$GET(topics)}% topics in the <nop>%WEB% web.

This provides a title (something that I personally think every page should have) as well as a count of the number of topics. (I used to select all and paste into an editor and get the line count. Why not let the wiki do the work for me?!)

-- VickiBrown - 14 Feb 2011

This could be done by changing TOPICLIST to SEARCH query , that will return the number of items in $index that can be set in a header.

-- ArthurClemens - 14 Feb 2011

Compared to SEARCH, TOPICLIST is quite fast actually. Just compare WebIndex with WebTopicList... I had to disable WebIndex on some sites just for performance reasons.

Another idea to count the topics is to change the unordered list into an ordered one in System.WebTopicList:

Before:
%TOPICLIST{"   * [[%BASEWEB%.$name][$name]]"}%

After:
%TOPICLIST{"   1 [[%BASEWEB%.$name][$name]]"}%

-- MichaelDaum - 15 Feb 2011

If SEARCH only searches topic names, why would it be so slow?

-- ArthurClemens - 15 Feb 2011

Just the overhead of search. Setting this to No Action. Adding anything to WebTopicList that might decrease its speed on large webs is probably a bad idea. On a test web with 2700 topics, my system has been looping a non-paged WebIndex for some minutes, required probably 2+ minutes. The WebTopicList was around 10 seconds And these were done as an admin, so no topic ACL checking was necessary.

-- GeorgeClark - 06 Jan 2015
 

ItemTemplate edit

Summary Enhance WebTopicList page with more info
ReportedBy VickiBrown
Codebase
SVN Range
AppliesTo Engine
Component FoswikiUsability
Priority Enhancement
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r5 - 06 Jan 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy