Tags:
create new tag
view all tags

Question

I notice that the TreePlugin picks up the name of its parent by using the entire content from the name attribute of the TOPICPARENT variable. When a topic is moved between webs, this value is given a qualified name of the form Web.Topic, which is different from the Topic the TreePlugin is trying to match.

I've tried a quick fix that gets me what I want in this case, but being new to TWiki, I'm not going to claim it's "right" in any true sense. (It would probably be better for the lookup to consider the name of the current Web and compare to the explicit one if it's present, however....)

Modify TreePlugin.pm by adding 2 lines in _findTWikiNode as follows:

sub _findTWikiNode {
    my ($name, $hash) = @_;

# new lines
    my @parts = split(/\./, $name);
    $name = @parts[-1];

    my $child = $hash->{$name}; # look for child

Environment

TWiki version: TWikiBetaRelease2004x05x07
TWiki plugins: DefaultPlugin, SpreadSheetPlugin, EditTablePlugin, InterwikiPlugin, RenderListPlugin, TablePlugin, TocPlugin, TreePlugin
Server OS: Mac OS X 10.3.4
Web server: Apache/1.3.29
Perl version: 5.8.1
Client OS: Mac OS X 10.3.4
Web Browser: Safari 1.2.2

-- PhillipMills - 27 Jul 2004

Answer

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2004-10-02 - PeterThoeny
 
  • 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-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.