Posted on 12 July 2007, 08:10
by ygleyzer
Location: @work
Location: @work
Rename
Rename leads to naming conflicts: if some page or file name changed, we need to change links to this page or file in all pages.
Added new actions : show-rename and rename for all wiki pages and
file rename in CsWiki/Files
It requires HUGE change in include/wiki_parser.php classes.
Now each element have getCSWML() that returns its source.
Each element source can be overridden (using setOverriddenSource(string)).
Class that implements page/file names replace is CSWML_TagElement_WIKILINK.
Parser just travel throw the parse tree and call CSWML_TagElement_WIKILINK::replace(name,new name,type) .
This feature was tested many times using diff and all bugs solved (I hope).
Wiki pages rename also support recursive rename of all children of this page (controlled by checkbox).