%TOPICSBOX% is a dropdownbox with all available topics in the current web, except those listed in wiki::hiddenTopics. This dropdownbox requires javascript (it uses the onchange event). You can't replace the current 'goto' entryfield with this dropdownbox, because the current entryfield is also used to create a (at that moment unlinked) topic. Unless of course you a) don't want any unlinked topics on your TWiki or b) you offer an other means to create new topics.
See
UniqueTopicTemplates for a proposed enhancement which can be used to create new (unlinked) topics without using the goto entryfield.
%TOPICSBOX% is replaced in wiki::handleCommonTags(); it uses wiki::createTopicDropdown() and (indirectly) wiki::getTopicList() to create the dropdownbox. The latter two functions are added to wiki.pm
First time using CVS, diff & patch, so I hope I did everything right and uploaded some useable patches
--
PeterFokkinga - 15 May 2000
Could this all be done using the tag extension functions in
wikicfg.pm if
&createTopicDropdown and
&getTopicList were added there also?
--
KevinKinnell - 08 Jun 2000
Yes, that would be possible. However, I think that
if this feature is included in the main distribution then it should go to
wiki.pm This would make the purpose of
wikicfg.pm less ambiguous (only local stuff).
Also %TOPICSSELECTOR% would be a better name than %TOPICSBOX% (keeping it consistent with the dropdownboxes from
SearchAllTWikiWebs )
--
PeterFokkinga - 09 Jun 2000
related topics:
InterfaceClutter