Forum OpenACS Development: Xowiki 0.35 image/file upload issues

Collapse
Posted by Dave Bauer on
In Xowiki 0.35 when you edit a page under /en/page_name the file upload widget doesn't work because the URL is ./xinha/insert-file which is not a page under /en/ in xowiki.

If you edit the index page frm the URL without the /en/ it works ok.

FOr example:

https://openacs.org/xowiki/en/ide-emacs?m=edit&return%5furl=%2fxowiki%2fen%2fide%2demacs

on openacs.org. The upload icons will lead to an unresolved URL (which ends up at the admin page.)

As we move these into /acs-templating/www/scripts/xinha (on HEAD) the issue will be fixed. Is there a workaround or should I just move to acs-templating on HEAD?

Collapse
Posted by Gustaf Neumann on
i see, stupid issue. Must have sneaked in in version 0.30. I have now added parameter script_dir to configuration section, which defaults now to /xowiki, since most people will need it for the time being with xowiki. however, with the default configuration, /xowiki must be mounted.

This configuration option can be reset to the old behavior with the javascript option xinha_config.script_dir = '.'; in the widget specification (see http://media.wu-wien.ac.at/download/xowiki-doc/#js and/or the template::widget::richtext in the api-browser) or it can be hard-coded in e.g. blank-master.tcl.

I'll commit the issue to 5-2 and head.

-gustaf