dokuwiki-plugin-move icon indicating copy to clipboard operation
dokuwiki-plugin-move copied to clipboard

Move page incl. the contained images?

Open ImhotepDE opened this issue 3 years ago • 3 comments

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

ImhotepDE avatar Sep 07 '22 08:09 ImhotepDE

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.

ramanvda avatar Apr 05 '24 05:04 ramanvda

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?

michitux avatar Apr 05 '24 05:04 michitux

@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.

ramanvda avatar Apr 07 '24 11:04 ramanvda