1. Find & Replace - CKG Edit does have this feature, however all features are greyed out and do not work when "Source" HTML button is selected, so this cannot be used to find image and file pathnames which need to be corrected during a migration!
We need a Find & Replace tool that will be able to work with the server files on line & will work with authentication.
Is Bash a possibility?
2. Use of CKG Editor and DW Editor for Migration.
A. Open Druple 6 website, navigate to the page to be migrated and select edit.
B. Copy all to Clipboard (Ctrl+A, then Ctrl+C).
C. Open the DokuWiki website, navigate to the page to receive content (previously created).
D. Get into CKG Edit mode. Select Edit. If CKG Edit is available at the bottom menu, select it.
F. When Edit mode closes, select Edit again.
G. Now you are in CKG Edit mode and "DW Edit" selection should be in the bottom menu.
H. Put the cursor in the edit window below the title, and Paste the clipboard contents Ctl+V
I. Pick "Save". Then when saved, pick "Edit".
J. Now switch to DW Edit mode by picking "DW Edit" from the bottom menu.
K. When Edit closes, select "Edit" again.
L. "CKG Edit" should now be in the bottom menu. You are in DW Edit Mode.
M. Now use your Browser "Edit" > "Find" to search for all image paths.
N. Enter into Find "{{:opencpn:opencpn_user_manual" and hit search.
O. Now inspect the pathname for the image and change it (shorten it generally) so that image links will work.
P. Save and view the migrated document.
Q. Compare with the original document in Druple.
R. All Internal File links and External File links will have to be checked later.
This has to be done for every page! Probably over 200 pages.
3. Media/Screenshots/Photos - The Dokuwiki path to the media for this namespace is {:opencpn:opencpn_user_manual:[filename]}}
It soon became apparent that Dokuwike does not accept filenames with uppercase characters and the migration process changes all filenames to lowercase. Therefore the 750 media files I had uploaded had to be changed. I made a bat file called renamefiles2lowercase.bat and put in it
for /F %%a in ('dir /L /B') do rename %%a %%a
To be clear, all 750 (approx) image files have been fixed to be lowercase and uploaded again. Editors assisting need be sure the DW Editor pathname is correct IE
{{:opencpn:opencpn_user_manual:[filename]}}
NOTE: Often the filename will have several hypens in it like this "user_rickgleason_realfilename.jpg[otherinformation]". I this case you should delete the first part of the filename so it reads "realfilename.jpg[otherinformation]" and the full DW Editor pathname would be
{{:opencpn:opencpn_user_manual:realfilename.jpg[otherinformation]}}
---
For Future Editing - Plugin for Pasting Clipboard Image into a Wiki page.
https://www.dokuwiki.org/plugin:imgpaste