DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:mediarename

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Both sides next revision
plugin:mediarename [2009-12-27 23:41]
86.59.89.192
plugin:mediarename [2017-02-07 16:19] (current)
grosse [MediaRename Plugin] Version upped
Line 1: Line 1:
-====== mediarename plugin ======+====== MediaRename Plugin ======
  
 ---- plugin ---- ---- plugin ----
-description: Add a quicklink to mediamanager to allow automatic renaming of all media-files in a namespace to valid media-file-names +description: Add a quicklink to mediamanager to allow automatic renaming of all invalid filenames in a namespace to valid media-file-names 
 author     : STADTWERKSTATT author     : STADTWERKSTATT
 email      : target@servus.at email      : target@servus.at
-type       :  +type       : action 
-lastupdate : 2009-12-27 +lastupdate : 2017-02-07 
-compatible : 2009-08-30+compatible : Hrun
 depends    :  depends    : 
 conflicts  conflicts 
 similar    :  similar    : 
 tags       : rename, renaming, media, mediamanager, filenames tags       : rename, renaming, media, mediamanager, filenames
 +
 +downloadurl: https://github.com/cosmocode/dokuwiki-plugin-mediarename/archive/master.zip
 +bugtracker : https://github.com/cosmocode/dokuwiki-plugin-mediarename/issues
 +sourcerepo : https://github.com/cosmocode/dokuwiki-plugin-mediarename
 ---- ----
  
 ===== What is this ? ===== ===== What is this ? =====
  
-Media Files with invalid names can be renamed to valid dokuwiki-media-file-names when they are found in a media directory by the media-manager. +Media Files with invalid names can be renamed to valid DokuWiki-media-file-names when they are found in a media directory by the media-manager. 
 Renaming is triggered by a link at media-managers left-side area.  Renaming is triggered by a link at media-managers left-side area. 
  
Line 24: Line 28:
 ===== Download and Installation ===== ===== Download and Installation =====
  
-Download and install the plugin using the [[plugin:plugin|Plugin Manager]] using the following URL. Refer to [[:Plugins]] on how to install plugins manually.+Install the plugin using the [[plugin:extension|Extension Manager]] and the download URL above, which points to latest version of the plugin. Refer to [[:Plugins]] on how to install plugins manually. 
 + 
 +The former version of this plugin could still be available at the following URLs:
  
 [[http://develop.servus.at/software/mediarename-2009-12-02.tgz]] [[http://develop.servus.at/software/mediarename-2009-12-02.tgz]]
Line 33: Line 39:
 ===== Usage ===== ===== Usage =====
  
-If the plugin is installed, aquicklink is shown in the left-side-area of the mediamanager. Clicking it, converts all invalid media filenames to valid ones. +If the plugin is installed, a quicklink is shown in the left-side-area of the mediamanager. Clicking it, converts all invalid media filenames to valid ones. 
-Recursively processing all sub-namespaces can be choosen.+Recursively processing all sub-namespaces can be chosen.
  
 Mediamanagers usual behaviour is to show a message for each invalid mediafilename found. Mediamanagers usual behaviour is to show a message for each invalid mediafilename found.
Line 40: Line 46:
  
  
-===== Notes ===== +===== Development ===== 
- The recursive renaming does not truely work yet: in case that a directory had to be renamed, recursion breaks -  + 
- possible invalid filenames inside that directory are not renamed. +=== Change Log === 
- Simply run the function a second time !+{{rss>https://github.com/cosmocode/dokuwiki-plugin-mediarename/commits/master.atom date}} 
 + 
 +=== Known Bugs and Issues === 
 + 
 +Please report bugs and issues at: https://github.com/cosmocode/dokuwiki-plugin-mediarename/issues 
 + 
 + 
 +  * The recursive renaming does not truly work yet: in case that a directory had to be renamed, recursion breaks - possible invalid filenames inside that directory are not renamed. \\ Simply run the function a second time ! \\ \\  (This break is kept for the case that a directory has to be renamed exactly to the name of an already existing directory - to prevent the unintended moving of the files from the first dir to the existing dir (that would follow from the recursive process)  \\  Didn't come around this till now...  Well, being forced to click several times if there are directories with invalid names is not the worst that can happen... at least you see what you are doing;-)) 
 + 
 +  * Keep in mind: DokuWiki skips all filenames in the mediadir beginning with '.', ':', '_'. as hidden files. \\  As you possibly could use this plugin for bulk-renaming digi-cam photos with typically uppercase-names which you didn't load through media-manager you might find that some cams name the .jpgs like: '_IMG-xxx'. Unfortunately such files are not recognized by DokuWiki and thus also not renamed by this plugin.
    
- This is for the case that a directory has to be renamed exactly to the name of + 
- an already exising directory - to prevent the unintendet moving of the files from the  +==== User comments ==== 
- first dir to the existing dir (that would follow from the recursive process)   +  * I can see no rename link. Deleting and re-installing the plugin doesn't help. How do I get it to work? // 2015-06-03 // 
- Didnt come around this till now ..+  * I could not find the rename link, I just opened the lib/exe/mediamanager.php?rename=recv URL by hand. 
 + 
 +  * The plugin allows anyone with READ permissions to start the auto-renaming. If you want permissions of at least AUTH_DELETE, change AUTH_READ to AUTH_DELETE in the plugin source. 
 +  * **WARNING** The mediarename plugin isn't adopted yet to jQueryThat could lead to a misfunction of other plugins!  --- [[user>konus|konus]] //2013/12/27 22:58//
plugin/mediarename.1261953672.txt.gz · Last modified: 2009-12-27 23:41 by 86.59.89.192