![]() ![]() This is, sadly, the best option I can think of without spending the time to manually “re-invent the wheel” here.Īlso, the dev has stopped maintaining this plugin. At this point, I might as well just link to the original document. ![]() It is rather tedious to have to manually save each image, and then upload. If anyone knows of any way to actually import a basic document with a few images properly, I would really love to know of a good way. Have banged my head against this plugin for too long. None seem to parse image export correctly. Have tried 4.2.7 (default for 14.04), as well as the latest beta - 4.4.x. I have a further issue in that the HTML output of the LibreOffice conversion is putting the images inline in base64 data URIs instead of external jpg/png files and Dokuwiki doesn't support them - but at least the text is usable and has been formatted properly.Ĭonfirmed - Images do not import with this plugin. Preg_match_all("//", $myHTMLContent, $image_tags) Line 95 in /var/www/dokuwiki/lib/plugins/docimporter/ImportUtils.php from: I made this change to case-insensitive and everything started working: After digging through the process, I found that the regex responsible for matching the images was case sensitive (my HTML img tags were lower case). docx Word files I had a well formatted page added to the wiki, but with instead of images/pictures. Any other ideas? Does this plugin still work for anyone? Thanks. ![]() Reverting the change to the plugin's action.php fixed that problem, fortunately. Instead, it just caused my wiki to display completely blank pages. Similarly, the plugin fails to create a new page and I get the following error in my server's error log:ġ 15:22:08 2990#2990: *890 FastCGI sent in stderr: "PHP message: PHP Warning: Declaration of action_plugin_docimporter::register($controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /var/server: _, request: "GET /dokuwiki/doku.php?id=start&do=admin&page=config HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/:", host: "192.168.200.144", referrer: ""Ĭhris's suggestion did not help. Here is an example for the “dokuwiki” template.Īnd add the following lines between the “” and “” tags just below the comment :Īnd add the following lines just before the comment : Now you can add a button and a form to your template to be able to upload new documents. Once the remote API is enabled for a given username and password, fill in the corresponding fields into the options of the plugin in the configuration settings of Dokuwiki. For more information on how to do that, please refer to. Sudo chmod +x /usr/bin/convert_to_mediawikiįinally, the plugin uses the XML-RPC remote API, therefore you need to enable it and specify a username and a password. Soffice -nofirststartwizard -headless -convert-to txt:"MediaWiki" $1 Soffice -nofirststartwizard -headless -convert-to html:"HTML" $1 Refer to Plugins on how to install plugins manually. Search and install the plugin using the Extension Manager. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |