Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Checkbox for relative path pasting in dokuwiki page .txt file #14

Open
NeverUsedID opened this issue Oct 25, 2018 · 1 comment

Comments

@NeverUsedID
Copy link

NeverUsedID commented Oct 25, 2018

Reason: We sync parts of Dokuwiki to other namespace in other dokuwikis. This will not work with images from ImgPaste, because the full path including all namespaces will written into the dokuwiki .txt file.

Example:
Image is stored in /var/www/data/media/location01/networkplan/pasted/20181025-171042_.png
dokuwiki .txt is {{:location01:networkplan:pasted:20181025-171042_.png}}

But on the synced Wiki on location 01 the namespace location01 is missing, because we synced all files directly to the first namespace networkplan.

Problem:
the image is there, but its not in /var/www/data/media/location01/networkplan/pasted but in /var/www/data/media/networkplan/pasted/20181025-171042_.png

Solution:
Option to paste relative path in the dokuwiki .txt wiki page.
Example: {{.:pasted:20181025-171042_.png}}

Workaround:
use ':imgpaste:@ns@:pasted:%Y%m%d-%H%M%S' as filename and sync the folder separately

@splitbrain
Copy link
Member

Simply configuring a relative namespace wouldn't work since we would need to resolve it to absolute anyway. However it should be possible to simplify the mediaID based on the current pageID on the JavaScript side. This could always be done, no need for a setting.

PR welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants