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

Move page incl. the contained images? #222

Open
ImhotepDE opened this issue Sep 7, 2022 · 3 comments
Open

Move page incl. the contained images? #222

ImhotepDE opened this issue Sep 7, 2022 · 3 comments

Comments

@ImhotepDE
Copy link

ImhotepDE commented Sep 7, 2022

Hello together,

is it possible to move a page one by one with the pictures that are on that page?

I would like to move the whole namespace but only the page with the images on it.

Example:

sourcedirectory/pic1.jpg
sourcedirectory/page1.txt

Move -> dir2

targetdirectory/pic1.jpg
targetdirectory/page1.txt

Currently, when the page is moved, the image remains on the page in the source directory and is not moved to the destination directory.

Only the links on the page are adjusted.

Thanks a lot

@ramanvda
Copy link

ramanvda commented Apr 5, 2024

Same issue. Very frustrating and dangerous when medias from playground stay writable for all user then the initial page was already moved to a restricted area managed by ACL.

@michitux
Copy link
Owner

michitux commented Apr 5, 2024

DokuWiki doesn't have the concept of attachments. Media files are independent entities that exist independent of pages and can be used in any number of pages. Which rules should the move plugin use to decide which media files should be moved where when a page is moved/renamed?

@ramanvda
Copy link

ramanvda commented Apr 7, 2024

@michitux You get the point. True.

In our use case, we use a playground directory which is public like that all registred users are able to add new page with media files (picture, PDF, word/excel document, etc...).
Only few users with writing rights on our dokuwiki are able to move page from public playground (named "brouillon") to a restricted area managed by ACL (named "connaissance"). It's like a validation process.

We only want to move page and media files linked from "brouillon" to "connaissance".

There isn't possible to add a general option for the move plugin in order to know from which directories the media files need to be move ? For exemple, an option for liting specific folders names impacted by this behaviour ? In my case, I would add my "brouillon" directory.
Like that the plugin knows the files to move or not (because "brouillon" directory is already listed in an include list source directories)

It will be very useful and more safe for us !

Thanks for your wonderful plugin.

splitbrain added a commit that referenced this issue Jul 8, 2024
A new checkbox allows to move referenced page media along with a page
rename.

This happens only if

* the checkbox is ticked
* the page actually moves to a new namespace
* the page was not in the root namespace
* the referenced media is in the same namespace as the page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants