Hi !

Thanks for the tips but I already tried it. The problem is that the macro is
an embedded
flash component (the one delivered with freemind-0.9-beta9) which do not
react to the
"force reload" shortcut. I must go through the preference of my browser to
manually
clear the cache. However, using the revision
number in the macro should be a solution but force me to be careful of
updating the
macro call each time I update the mindmap (or when one of my collaborator
update it).
Implementing a solution in XWiki to make attachment max caching period to
the time
of the last update should be the first choice solution : transparent for
everyone... a
valuable proposal for XWiki 1.6 ;) ?

You can look around the macro at the following address :
http://globotraders-tahiti.com/xwiki/bin/view/Macros/Freemind

and the code is :

#macro(flashmap $mapname)
<script type="text/javascript"
src="$xwiki.getDocument('Macros.Freemind').getAttachmentURL('flashobject.js')">
</script>
<div id="flashcontent_$mapname">
Flash plugin or Javascript are turned off.
Activate both  and reload to view the mindmap
</div><script type="text/javascript">
var fo = new
FlashObject("$xwiki.getDocument('Macros.Freemind').getAttachmentURL('visorFreemind.swf')",
"visorFreeMind", "100%", "600", 6, "#9999ff");
fo.addParam("quality", "high");
fo.addParam("bgcolor", "#ffffff");
fo.addVariable("openUrl", "_blank");
fo.addVariable("initLoadFile", "http://globotraders-tahiti.com
$doc.getAttachmentURL($mapname)");
fo.addVariable("startCollapsedToLevel","5");
fo.write("flashcontent_$mapname");
</script>
#end

Some tuning has to be done but it really rocks, you should think about add
it to the next revision of XWiki.

-- 
Hoani CROSS
Globotraders Tahiti Founder [http://globotraders-tahiti.com]

2008/8/4 Ludovic Dubost <[EMAIL PROTECTED]>

>
> This is due to the browser cache. Have you tried SHIFT- or CTRL- reload.
> Unfortunately if we reduce the cache level this is bad for performance.
>
> Maybe we should add the version number of the images to the URL to beat
> the cache and force a reload.
>
> You can workaround by modifying the mindmap macro and adding the
> attachment version number to the URL.
>
> Ludovic
>
>
> Hoani Cross wrote:
> > Hi !
> >
> > I'm currently using attachments to have my minmaps shown up on my website
> > using a macro. When I update one of my mindmaps, the mindmap displayed
> still
> > the same. If I download the file and open it with Freemind, it's still
> the
> > first version. Worse, if I delete the attachment and use my browser
> history
> > to fetch the attachment again, it resolves and gives me the first
> version...
> > again ! However, using the revisions page gives me the wanted result,
> > selecting the last revision return the true revision. I'm using XWiki 1.4
> on
> > Tomcat [EMAIL PROTECTED] Any clue ?
> >
> >
>
>
> --
> Ludovic Dubost
> Blog: http://blog.ludovic.org/
> XWiki: http://www.xwiki.com
> Skype: ldubost GTalk: ldubost
>
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to