--
MagnusLewisSmith - 04 Jul 2005
Will definitely test this plugin as soon as possible. Great idea!
--
FranzJosefSilli - 11 Jul 2005
This Plugin looks very promising! Magnus, thanks for sharing
How about measuring and documenting the
PluginBenchmarks?
--
PeterThoeny - 12 Jul 2005
checked
.zip into
CVS
--
WillNorris - 19 Jul 2005
I think having the possibility to constrain the size of the image would be nice...
--
IgorCastang - 09 Nov 2005
This answered a wish I had for my twiki. I like it a lot. If you plan on adding to it please consider this.
- Max map and image size
- detecting changes in the web and throwing away old maps
Thanks!
--
CullenNewsom - 21 Feb 2006
Updated plugin with a size parameter and a little example webmap. Uploaded a new version from SVN.
--
SteffenPoulsen - 16 Apr 2006
Hi, interesting! Will definitely try this out. Two things:
- the example webmap is clickable, but most links don't work in my case. They point to http://twiki.org/cgi-bin/view/Plugins/%%nop/cgi-bin/
- Yep, unfortunately forgot that Cairo doesn't support the SCRIPTURLPATH variable. Should be re-written at next release. -- SteffenPoulsen - 17 Apr 2006
- is there a reason for the lines not being very smooth? See for example the one from TWikiAdminGroup to TWikiGuest. Is this configurable or does it represent underlying limitations? This is very much a minor issue, though.
- I believe there are some approaches to this, both smooth-scaling the image and smoothing the lines. Feel free to figure out something - it's not really a priority of mine :-/ -- SteffenPoulsen - 17 Apr 2006
--
JosMaccabiani - 17 Apr 2006
Hmmm. Although i've enabled (and re-enabled) the plugin in Configure, in
InstalledPlugins I still have:
TWiki::Plugins::DirectedGraphWebMapPlugin::initPlugin did not return true (0)
Any idea what might be going wrong? All files have the same permissions as the other ~10 plugins that work OK. (TWiki 4.0.2)
--
JosMaccabiani - 18 Apr 2006
DirectedGraphWebMapPlugin depends directly on
DirectedGraphPlugin, so that needs to be enabled as well. I'd guess that's why it's not initializing properly.
--
SteffenPoulsen - 18 Apr 2006
Oops, I see the dependency now. I added it to the installation instructions as well, if you don't mind.
--
JosMaccabiani - 18 Apr 2006
I tried to install this plugin and its dependencies.
And I got it to run and produce maps. But the maps are have very small bubbles with text so small that you can read nothing.
I tried the WebMap in the TWiki web and the server timed out. Then I tried a web with fewer topics and it showed the map where you cannot read anything. So not much success here. The test was done on a latest Centos.
I could get the
DirectedGraphPlugin to work fine. The demo example renders in an OK size with readable characters.
--
KennethLavrsen - 18 Apr 2006
The TWiki web is an interesting case
- TWiki WebMap at a distance:
WebMap at a distance" width="800" height="142" />
- 2500 edges
- ~10 min render time (2.4ghz P4) - this is why you have problems doing the rendering from inside TWiki (on top the dot process needs to run twice, one time for the png and one time for the map file).
- needs at least ~25 megapixel to not be nitty-gritty imho.
- I think a map of that would need a very large (~150+ inch) viewport to make sense. I.e. a standard monitor is a challenge, large size print/plot/poster probably better (with
size="160,120" texts begins to be readable). Btw: If you get "small bubbles" in your tests, try to blow up your image size - i.e. add something like size="20,15" to your webmap parameters).
- TWiki WebMap detail view:
WebMap detail view" width="600" height="299" />
For the sake of satisfying initial curiousity I have uploaded a version of the TWiki WebMap rendered in SVG.
SVG support is built into firefox these days, so you can view the image directly if you're in a newer version of that browser - though I'm afraid you will probably find it too slow to support this case

You can use something like
http://xmlgraphics.apache.org/batik/svgviewer.html#downloading
for displaying the file instead - not that is blazingly fast in handling this svg file, but it
is faster.
SVG has clickable map support builtin, so it'll be a great format for displaying these kind of graphs once zoom/pan etc gets somewhat easier for users to use.
--
SteffenPoulsen - 18 Apr 2006
Please consider adding
use strict; to this plugin. Its use is important to ensuring the quality of TWiki plugins and avoiding unpleasant surprises. See
UseStrict for more.
--
MeredithLesly - 02 Jul 2006
I've installed this on v4 and can get some output, but with problems.
'excludesystem="1"' seems to be excluding everything because I get no image when it's set. Also, the rendered topic doesn't have the image map anywhere in it.
--
BillGunter - 17 Jul 2006
Okay, I removed
WebHome from
@systemTopics
in
DirectedGraphWebMapPlugin.pm and now the map is being included, even for topics where excludesystem="1" isn't set.
--
BillGunter - 17 Jul 2006
We are trying it on v4 but we see some strange behaviour: let's suppose you want to draw the map of the url1/topic1 topic inside a topic url2/topic2. Suppose also that topic1 has 2 "sons": url1/topic11 and url1/topic12. The map is correctly drawn but the links inside the "bubbles" are "mixed-up": the "bubble" of "Topic11" links to url2/topic11 instead of url1/topic11 and the one of "Topic12" to url2/topic12 instead of url1/topic12
--
FabrizioBerdondini - 25 Aug 2006
Great plugin. Very useful. I have a couple of suggestions though:
- adding
TWikiPreferences in the list of system topics?
- show the current topic in different style in a topicmap,e.g. different colour, or font, or similar.
I also second
CullenNewsom 's suggestion that it should throw out old maps automatically. Thanks!
--
StephanMatthiesen - 14 Jan 2007
I noticed a problem: It seems that the
%TOPICMAP% doesn't like the
TagMePlugin. The topicmap doesn't show links that appear after a
variable....
--
StephanMatthiesen - 20 Sep 2007
The issue that old maps are not thrown away is no longer a problem. There have been changes in
DirectedGraphPlugin; this now uses a different naming scheme, so when a graph is updated, the same filename is used.
--
StephanMatthiesen - 22 Jan 2008
This plugin still works fine.
I added
WebAtom,
WebCreateNewTopic and
WebTopMenu to the list of systemtopics.
I had to use
size="16,14" lr="1" to get a readable graph (with top to bottom the graph was only 74 pixels high...
The preferences of the
DirectedGraphPlugin are set to generate SVG, resulting in a nice SVG with clickable URLs. Backlinks are very important in our TWiki and this pluigin shows them nicely!
--
JochenVanDenBossche - 2012-11-08
Hi,
Seems like a great plugin! only it doesn't exactly do what I need. I built a knowledge base using the same kind of structure as the Support web.
Basically I create a knowledge topic :
KmBoo00002
. But as this is not very clear to the user, we use a lot the folowing link :
[[KmBoo00002][%SEARCH{ "KmBoo00002" scope="topic" regex="on" nonoise="on" format="$formfield(Name)"}%]]
that will bring up the proper name in the formfield.
The result is that the plugin doesn't find those links.
I went into the code saw that my
%SEARCH{.*}%
will be dumped and not looked at. So I inserted below line 283 the following line :
$baseTopicText =~ s/%SEARCH{.*}%/TWiki::Func::expandCommonVariables($&, $baseTopic, $web)/ge;
But that made the plugin crash.
Any ideas?
--
Sebastien Digard - 2015-09-23
First of all,
VarFORMFIELD performs better than a
VarSEARCH. With TWiki-6 you can also use
VarTOPICTITLE, provided your primary form field is called "Title".
Also
$& can slow down regex matches for Perl 5.16 or earlier, best to avoid.
What error message do you get in the Apache error logs?
Try a non-greedy
s/(\%SEARCH{.*?}\%)/TWiki::Func::expandCommonVariables($1, $baseTopic, $web)/ge;
--
Peter Thoeny - 2015-09-23
Thanks Peter,
That really helps.
I found another way that works fine :
s/\[\[(Km[A-Z][a-z]+[0-9]+)(\]\[)?([^\]]*)\]\]/$1/g;
I will look into
VarFORMFIELD and the other. I feel more and more that I need to go back to my perl books so I can change all my twiki topics in one go...
--
Sebastien Digard - 2015-09-25
For global changes see
GlobalReplacePlugin.
--
Peter Thoeny - 2015-09-29
Hi eeveryoone.
Is this Plugin still supported?
Does anyone know how to update this Plugin so as to display in the graph $topictitle instead of $topic?
--
Sebastien Digard - 2015-10-08
The plugin needs to be enhanced to be aware of the topic title. Probably by populating a new
%topicTitle hash in
sub populateWebMapArray, and use that when creating the dot map. Probably good to make this configurable with a
USETOPICTITLE preference setting.
--
Peter Thoeny - 2015-10-08
Hi all.
I updated the plugin with topic titles. It works fine! I just need to take a few seconds to add the preference setting.
--
Sebastien Digard - 2015-10-15
Cool. Please consider contributing this back to the TWiki community. You could create a unified diff and attach it to this topic, or create a new
TWikibug:WebHome
item and attach it there.
--
Peter Thoeny - 2015-10-15