Changes between Version 16 and Version 17 of WikiRename
- Timestamp:
- Mar 31, 2010, 3:32:19 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiRename
v16 v17 4 4 5 5 Among the various possibilities for performing a rename, this implementation aims at simplicity. The page name is modified "in-place", i.e. the object identity is mutated and as such, the whole history is kept and becomes associated to the renamed wiki page. 6 7 - Status: initial version, should work reasonably well.8 - View the changes: log:sandbox/wiki-rename9 - Test the branch, e.g.:10 {{{11 % svn co http://svn.edgewall.org/repos/trac/sandbox/wiki-rename12 % cd wiki-rename13 % python setup.py develop14 % python trac/web/standalone.py -p 8000 <your-test-environment>15 }}}16 6 17 7 You need to be a `WIKI_ADMIN` in order to be able to rename a page (or at the very least, have the new `WIKI_RENAME` permission). … … 23 13 - before the rename: 24 14 25 || ''pagename'' || ''text'' || ''comment''||15 ||= pagename =||= text =||= comment=|| 26 16 || !WikiStart || version1 || comment1 || 27 17 || !WikiStart || version2 || comment2 || … … 30 20 - after the rename: 31 21 32 || ''pagename'' || ''text'' || ''comment''||22 ||= pagename =||= text =||= comment=|| 33 23 || !ProjectHome || version1 || comment1 || 34 24 || !ProjectHome || version2 || comment2 || … … 37 27 the !WikiStart page will be (optionally) recreated with a redirection to the new page: 38 28 39 || ''pagename'' || ''text'' || ''comment''||40 || !WikiStart || See !ProjectHome || Renamed !WikiStart to!ProjectHome ||29 ||= pagename =||= text =||= comment=|| 30 || !WikiStart || See !ProjectHome || !WikiStart → !ProjectHome || 41 31 42 32 … … 54 44 55 45 * Would be nice to have a [http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.2 HTTP 301 redirect] from the old wiki page to the new one, to keep searchengine rankings etc. 56 - (cboos) right, real redirect is on the TODO list (#976)46 - (cboos) see ticket:3718#comment:3 (rather than #976) 57 47 58 48 * Another TODO: optionally rename sub-pages as well, and more generally, have the possibility to do batch renames