• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item5527: TWikiDrawPlugin does not handle hierachical Webs in image maps

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension TWikiDrawPlugin Normal New   n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

Problem

I noticed thatTWikiDraw Plugin does not handle hierachical Webs and also is not nice with non WikiWord topics, which it should allow IMHO.

Suggested Solution

In TWikiDrawPlugin.pm you find this code:

    my $map = TWiki::Func::readFile($mapFile);
    # Unashamed hack to handle Web.TopicName links
    $map =~ s/href=\"((\w+)\.)?(\w+)(#\w+)?\"/&_processHref($2,$3,$4,$web)/ge;
    $map = TWiki::Func::expandCommonVariables( $map, $topic );
    $map =~ s/%MAPNAME%/$mapname/g; 

I suggest changing the regexp to:

     $map =~ s/href=\"(($TWiki::regex{webNameRegex})\.)?([^"#]+)(#$TWiki::regex{wikiWordRegex})?\"/&_processHref($2,$3,$4,$web)/ge;

Sorry if this is not the correct place or style to report this issue

-- TWiki:Main/StefanAlthoefer - 12 Apr 2008

ItemTemplate
Summary TWikiDrawPlugin does not handle hierachical Webs in image maps
ReportedBy TWiki:Main.StefanAlthoefer
Codebase 4.2.0
SVN Range

AppliesTo Extension
Component TWikiDrawPlugin
Priority Normal
CurrentState New
WaitingFor

Checkins

TargetRelease n/a
ReleasedIn

Topic revision: r1 - 2008-04-12 - StefanAlthoefer
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback