<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_ym19_1_1501595015078_11145"><span id="yui_3_16_0_ym19_1_1501595015078_11230">When you rename a page, there is a checkbox at the top of the rename dialog labeled "Rename all / subpages too?" If you check that, subpages will be renamed.</span></div><div id="yui_3_16_0_ym19_1_1501595015078_11145"><span><br></span></div><div id="yui_3_16_0_ym19_1_1501595015078_11145"><span id="yui_3_16_0_ym19_1_1501595015078_11337">However, the links in the mother page will not be updated.</span></div><div id="yui_3_16_0_ym19_1_1501595015078_11145"><span><br></span></div><div id="yui_3_16_0_ym19_1_1501595015078_11145"><span id="yui_3_16_0_ym19_1_1501595015078_11462">There is an option you can add to the wikiconfig.py file:</span></div><div id="yui_3_16_0_ym19_1_1501595015078_11145"><span><br></span></div><div id="yui_3_16_0_ym19_1_1501595015078_11145" dir="ltr"><span id="yui_3_16_0_ym19_1_1501595015078_11492">    show_rename_redirect = True<br></span></div><div id="yui_3_16_0_ym19_1_1501595015078_11145" dir="ltr"><span><br></span></div><div id="yui_3_16_0_ym19_1_1501595015078_11145" dir="ltr"><span id="yui_3_16_0_ym19_1_1501595015078_11493">that will add a second checkbox to the rename dialog labeled "Create redirect for renamed page(s)?". (I could not find that documented anywhere other than MoinMoin/config/multiconfig.py)</span></div><div id="yui_3_16_0_ym19_1_1501595015078_11145" dir="ltr"><span><br></span></div><div id="yui_3_16_0_ym19_1_1501595015078_11145" dir="ltr"><span id="yui_3_16_0_ym19_1_1501595015078_13897">If you check both boxes on the rename dialog, then subpages will be renamed and in the place of the old subpage a revised page will be created redirecting to the new page. The mother page will also have a redirect from the old page to the new page.</span></div><div id="yui_3_16_0_ym19_1_1501595015078_11145" dir="ltr"><span><br></span></div><div id="yui_3_16_0_ym19_1_1501595015078_11145" dir="ltr"><span id="yui_3_16_0_ym19_1_1501595015078_14196">If you try to rename back to a previously used page name you will get an error message.</span></div><div id="yui_3_16_0_ym19_1_1501595015078_11145" dir="ltr"><span><br></span></div><div id="yui_3_16_0_ym19_1_1501595015078_11145" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1501595015078_11145" dir="ltr"><span id="yui_3_16_0_ym19_1_1501595015078_14504">Roger Haase</span></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> On Tuesday, August 1, 2017 6:42 AM, "Molecki, Christian (STL)" <Christian.Molecki@stala.bwl.de> wrote:<br></font></div>  <br><br> <div class="y_msg_container"><div dir="ltr">Hello Volker,<br clear="none"><br clear="none">you can manipulate the moinmoin database by using a script or application.<br clear="none">I already did something similar with a bash-script and sed.<br clear="none"><br clear="none">I recommend you to shut down the Apache, so the working user, cannot edit any pages out of the cache.<br clear="none"><br clear="none">Mit freundlichen Grüßen<br clear="none">Christian Molecki<br clear="none">--------------------------------------------<br clear="none">Referat 14: Systemtechnik und Datenmanagement<br clear="none">OE 143: Systemtechnik, Großrechner, Internettechnik, Datenmanagement<br clear="none"><br clear="none"><br clear="none">-----Ursprüngliche Nachricht-----<br clear="none">Von: moin-user [mailto:moin-user-bounces+christian.molecki=<a shape="rect" ymailto="mailto:stala.bwl.de@python.org" href="mailto:stala.bwl.de@python.org">stala.bwl.de@python.org</a>] Im Auftrag von Volker Wysk<br clear="none">Gesendet: Dienstag, 1. August 2017 15:28<br clear="none">An: <a shape="rect" ymailto="mailto:moin-user@python.org" href="mailto:moin-user@python.org">moin-user@python.org</a><br clear="none">Betreff: Re: [moin-user] How to rename pages and subpages?<br clear="none"><br clear="none">Hello Christian!<br clear="none"><br clear="none">Am Dienstag, 1. August 2017, 12:54:51 CEST schrieb Molecki, Christian (STL):<br clear="none">> > I don't quite get what you're saying in the last sentence. The pages are<br clear="none">> > all><br clear="none">> >in the moin/data/pages directory, aren't they?<br clear="none">> <br clear="none">> That's correct.<br clear="none">> <br clear="none">> >They aren't ordered<br clear="none">> >hierarchically in the filesystem. The path separator "/" is mapped to<br clear="none">> >"(2f)".<br clear="none">> That's also correct.<br clear="none">> If you want to rename the subpages by renaming the motherpage, they should<br clear="none">> be ordered hierarchically (but they aren't).<br clear="none"><br clear="none">Off list, I've asked you, if links referring to a page are updated when the <br clear="none">page is renamed. You wrote No, they aren't. They will point to a non-existent <br clear="none">page.<br clear="none"><br clear="none">I assume that this also applies to the RenamePage command of the package <br clear="none">installer.<br clear="none"><br clear="none">The way I want to use MoinMoin, I expect that I want to rename pages <br clear="none">frequently. My enthusiasm of MoinMoin is fading...<br clear="none"><br clear="none">I wonder if I could write a program for renaming pages, which directly <br clear="none">manipulated the MoinMoin (file system) database. Would this be safe, if you <br clear="none">stopped Apache before, and restarted it afterwards? What about Xapian? <br clear="none">Anything else?<br clear="none"><br clear="none">Bye<br clear="none">V.W.<br clear="none"><br clear="none">_______________________________________________<br clear="none">moin-user mailing list<br clear="none"><a shape="rect" ymailto="mailto:moin-user@python.org" href="mailto:moin-user@python.org">moin-user@python.org</a><br clear="none"><a shape="rect" href="https://mail.python.org/mailman/listinfo/moin-user" target="_blank">https://mail.python.org/mailman/listinfo/moin-user</a><div class="yqt4624392539" id="yqtfd46922"><br clear="none">_______________________________________________<br clear="none">moin-user mailing list<br clear="none"><a shape="rect" ymailto="mailto:moin-user@python.org" href="mailto:moin-user@python.org">moin-user@python.org</a><br clear="none"><a shape="rect" href="https://mail.python.org/mailman/listinfo/moin-user" target="_blank">https://mail.python.org/mailman/listinfo/moin-user</a></div></div><br><br></div>  </div> </div>  </div></div></body></html>