#234 Edit: Allow renaming of pages

v1.3.*
closed
nobody
edit (10)
v1.3.1
2014-03-03
2013-10-15
gnosygnu
No

As per the title, this ticket will cover page renames from within the Edit tab. This should be a simple feature that should be part of the v0.10.2 release.

Discussion

1 2 > >> (Page 1 of 2)
  • gnosygnu
    gnosygnu
    2013-10-20

    • status: in-progress --> done
     
  • gnosygnu
    gnosygnu
    2013-10-20

    I've added this for the v0.10.2 release. This will only work with sqlite wikis (no one should be using xdat ones). I tested with simplewiki and renamed Earth to EarthXyz (and back)

     
  • gnosygnu
    gnosygnu
    2013-10-21

    • status: done --> closed
     

  • Anonymous
    2013-10-26

    I tried renaming the user page Ajay (so called User:Ajay ) to Conflict resolution. After the rename, the page then showed "User: Conflict resolution". This wasn't what I wanted (I wanted it to be "Conflict resolution", without the "User:" in front of it. When I then searched for the page, I found that no rename at all was done (name was still User:Ajay, not even User: Conflict resolution). Is there a fix for this ? (I'm using Windows, latest Java offline install and xowa 10.2) Alternatively, can I change the filenames manually ?

     
  • gnosygnu
    gnosygnu
    2013-10-27

    • status: closed --> in-progress
    • Expected release: v0.10.2 --> v0.11.*
     
  • gnosygnu
    gnosygnu
    2013-10-27

    This wasn't what I wanted (I wanted it to be "Conflict resolution", without the "User:" in front of it.

    Currently, renames will move the page in the same namespace. You want to rename the page and move it to a different namespace. Note that MediaWiki does neither of these out of box.

    Furthermore, your rename assumes that all non-namespaced terms should go to the Main namespace. For example, if I were renaming a Template page called "Test" to "Test1" I can just enter in "Test1" into XOWA today. Using your assumption, if I just enter "Test1" then the page ends up in the Main namespace. I'd have to enter in "Template:Test1", which is more cumbersome

    I'll probably have to implement an extra dropdown that specifies target namespace. I'm not sure when I'll get around to this, but I'll target a v0.11.* release for now.

    When I then searched for the page, I found that no rename at all was done?

    The edit only affects the main page index. It does not update the search index. Search updates don't fall under the scope of this ticket, and will probably not be addressed for some time.

    Alternatively, can I change the filenames manually?

    You can always run a SQL command on the .000.sqlite3 file.

    UPDATE  page 
    SET     page_namespace = 0   -- main namespace
    ,       page_title = 'Conflict resolution'
    WHERE   page_namespace = 1   -- user namespace
    AND     page_title = 'Ajay'
    ;
    
     

  • Anonymous
    2013-10-30

    I tried renaming Main page tests to ATCoLib, and the article again appeared as ATCoLib right after the renaming but doesn't show up after I search for it nor does it load if I write down the complete path at xowa and press enter.

    I would prefer to use the sqlite method though, I'm not sure how to load the atcolib.ow.000 file, see http://sourceforge.net/p/xowa/tickets/241/

     
  • gnosygnu
    gnosygnu
    2013-11-01

    the article again appeared as ATCoLib right after the renaming

    Ok. That sounds like it worked.

    but doesn't show up after I search for it

    I wrote earlier that search is not affected.

    The edit only affects the main page index. It does not update the search index.
    

    it nor does it load if I write down the complete path at xowa and press enter.

    I don't understand what this means. What complete path did you use?

    I would prefer to use the sqlite method though

    I've commented in that thread. I think it's best that you wait for the feature to be implemented.

     

  • Anonymous
    2013-11-01

    I wrote the full path in xowa in the field indicated in the image in annex. Pressing enter after entering this does not make xowa present the article (it does nothing).

    Regarding the search: I know you said it doesn't appear in the search; however the original article still exists as well (which I assume shouldn't be the case with a successful rename) and also still appears with the original name (Main page tests)

    I don't mind waiting a little longer for the next release, but since it doesn't seem to work at all, I don't think that it will work with the next release neither. Perhaps there's a mistake in the current version allready -atleast the windows version- or perhaps it's an issue with the java version I installed (it gave an error -something to do with the browser- after install, though it does load xowa and it works)

     
    Attachments
  • gnosygnu
    gnosygnu
    2013-11-01

    As per my comment above (Also, see my comment at https://sourceforge.net/p/xowa/tickets/241/#4698)

    This will only work with sqlite wikis (no one should be using xdat ones)

    I'm surprised anything worked. Particularly:

    the article again appeared as ATCoLib right after the renaming

    It should have failed on renaming. You should get an error saying "Only pages in the home wiki can be renamed"

    I know you said it doesn't appear in the search

    I said search is unaffected. As such, it's pointless discussing what search does or does not do. Specifically:

    • If the rename works, search will not, since search is unaffected
    • If the rename fails, search will not, since search is unaffected

    (it gave an error -something to do with the browser- after install, though it does load xowa and it works)

    Please specify the error.

    Also, I don't know what you mean by install. XOWA doesn't have an installer. Did you use the upgrade.exe? This is just a 7-zip wrapper around unzipping the files. I can't see it throwing any sort of browser error. If it did, please rerun and specify what error.

     

  • Anonymous
    2013-11-04

    So I'm using an xdat wiki, where I should use an sqlite wiki ? If so, tell me how I can convert the xdat wiki to an sqlite wiki.

    Regarding the "success" on the rename: I think it really failed (see previous posts). However I indeed didn't get an error message saying that "Only pages in the home wiki can be renamed" Also, I didn't get an error message with the renaming of the pages that didn't have User: before the name, and this renaming also didn't work.

    Regarding the install: I meant the installation of java. Since XOWA works though, I don't think this is the problem, but thought to mention it just in case.

     
  • gnosygnu
    gnosygnu
    2013-11-05

    So I'm using an xdat wiki, where I should use an sqlite wiki?

    Yes. The xdat wiki is basically obsolete.

    If so, tell me how I can convert the xdat wiki to an sqlite wiki.

    I provided instructions in one of your threads: https://sourceforge.net/p/xowa/tickets/241/#4698

    However I indeed didn't get an error message saying that "Only pages in the home wiki can be renamed"

    That's strange, but it may be related to the obsolete xdat format. Regardless, xdat wikis don't support page renames.

    Regarding the install: I meant the installation of java.

    Ok.

     

    • Anonymous
      2013-11-07

      I'm having some trouble on making the wiki have a good filename. Appearantly, the import either takes over the filename of the original xml file, or it takes over the folder name of the folder the xml is in. I tried putting it directly at the root, but then it takes over the disk's name (E). I'll try again tomorrow, putting it at E:\atcolib\ instead

      I'm having a more pressing problem though; I had allready done many articles changes on my old wiki, and there doesn't seem to be a user history that shows all pages the user has changed. There's Special:XowaPageHistory but that just shows the page visited, is there a page showing all pages the user has changed ? If not, is there a possibility to include it in a next xowa version ? When I have this, I can quickly find all the articles I changed, and then copy/paste the updated texts

      BTW: once this is done and the renaming works, is it possible to just rename the Welcome to Appropedia page, and so have this renamed page load when clicking on the wiki in the taskbar (so that that way, I no longer need the user_custom_cfg.gfs file ?

       
      • gnosygnu
        gnosygnu
        2013-11-08

        I'm having some trouble on making the wiki have a good filename

        I'm not sure I understand. If you want the new wiki to have the same name as the old one, then rename the old one to something like "atcolib_old.ow" and name the new one "atcolib.ow"

        is there a page showing all pages the user has changed ?

        No, I'm afraid there is no history of edited pages. Without any history, there isn't any feature I can introduce.

        I've said this before, but I'll say it again. XOWA is currently meant for read-only wikis. It doesn't fully support read-write wikis, and you may find its functionality limited for your purposes.

        I'm not sure what else I can recommend...

        is it possible to just rename the Welcome to Appropedia page, and so have this renamed page load when clicking on the wiki in the taskbar (so that that way, I no longer need the user_custom_cfg.gfs file ?

        You'd probably still need the user_custom_cfg.gfs file. You could try the sqlite route but the gfs file is safer.

         

        • Anonymous
          2013-11-11

          No, I'm afraid there is no history of edited pages. Without any history, there isn't any feature I can introduce.
          --> I just thought there might have been a page allready present that could of been used (ie Special:Contributions/Anonymous or Special:Contributions/802.168.0.1 or something). Anyway, if there isn't a history, I guess i will still be able to retrieve most, by peeking at the appropedia user contributions page

          You'd probably still need the user_custom_cfg.gfs file. You could try the sqlite route but the gfs file is safer.
          --> I tried it, and it indeed doesn't work. I also ran across some issues with the gfs file (as I put both wiki's under the same xowa program now -untill now I used 2 xowa programs, one for each wiki-) the same article needed to be present with both wiki's. So, I no longer use the gfs, but simply made a redirect from the welcome page (the gfs method btw doesn't work all that well,a page that has been renamed and is used as the main page with the gfs doesn't load).

          I noticed btw that articles that redirect to a non-existant page can't be opened/edited. Perhaps it's something to look at.

          Another issue is that when a page has been renamed incorrectly and you thus don't know the name anymore, one can not retrieve it (as the pages don't appear in the search).

          BTW: does windows remove files in a particular order (I accidentally clicked to permanently delete my old xowa folder with all my images, ...) yet clicked cancel immediatelly after it. Since the /imagedump folder is not at all the first folder in the xowa folder I assume nothing was deleted of these, yet just wanted to ask to be sure.

           
          • gnosygnu
            gnosygnu
            2013-11-12

            I just thought there might have been a page allready present that could of been used (ie Special:Contributions/Anonymous or Special:Contributions/802.168.0.1 or something)

            XOWA doesn't implement this special page, and will not for some time

            I tried it, and it indeed doesn't work

            You said previously it did work: https://sourceforge.net/p/xowa/tickets/241/#22ed

            What's changed since then?

            a page that has been renamed and is used as the main page with the gfs doesn't load

            If you rename the main page, then you'd have to change the main page name in the gfs file as well. This is an extra step, but you really shouldn't be renaming the main page often (if at all).

            I noticed btw that articles that redirect to a non-existant page can't be opened/edited.

            You can get back to the original page by using the query arg: "?redirect=no". For example, en.wikipedia.org/wiki/Redirect_for_page_that_doesnt_exist?redirect=no

            does windows remove files in a particular order (I accidentally clicked to permanently delete my old xowa folder with all my images, ...)

            I really can't speculate about what happened on your system during a canceled folder delete. Your best option is to fall back on any manual backups.

             

            • Anonymous
              2013-11-12

              You said previously it did work: https://sourceforge.net/p/xowa/tickets/241/#22ed
              What's changed since then?
              --> It works with a page that was allready in the imported xml, but it doesn't work with pages that have been renamed from within xowa. I off course prefer a an article with AT CoLib in the name, so a renamed page needed to be used.

              I'm having some trouble on making the wiki have a good filename
              I'm not sure I understand. If you want the new wiki to have the same name as the old one, then rename the old one to something like "atcolib_old.ow" and name the new one "atcolib.ow"
              --> I meant that one needs to put the original xml (for the import) in a correct folder, as it takes over the folder names (including the folder nesting/hierarchy). So if you want to call it ie "atcolib", it's best to put it in a folder directly under the root at /atcolib/originalxml.xml Nothing difficult really, but one generally just expects that only the name of the (xml) file needs to be good, and that the location of the file is of no importance. Perhaps it's a good idea to mention this at the help pages.

              Also, at the help pages, perhaps also mention how to change the sidebar (by editing wikiname/wiki/MediaWiki:Sidebar ) Again, not difficult, but most people won't know this at first, so useful to mention at help pages.

               

              • Anonymous
                2013-11-12

                What's changed since then?
                --> It works with a page that was allready in the imported xml, but it doesn't work with pages that have been renamed from within xowa. I off course prefer a an article with AT CoLib in the name, so a renamed page needed to be used.

                UPDATE: I first thought the renamed pages were the issue since it did work the first time with the non-renamed pages, however I did this with the first (old) wiki, and I just noticed the line of the gfs still mentioned the old wiki (atcolib.ow) after app.wikis.get, so I fixed it to app.wikis.get('atcolib').props.main_page = 'AT CoLib Main Page';
                This works, so it had to do with this issue and not the renaming

                 
                • gnosygnu
                  gnosygnu
                  2013-11-13

                  This works, so it had to do with this issue and not the renaming

                  Ok. It sounds like you figured it out on your own. Let me know if there is anything else.

                   
  • gnosygnu
    gnosygnu
    2013-11-05

    • Milestone: v0.10. --> v0.11.
     
  • gnosygnu
    gnosygnu
    2013-11-22

    • Expected release: v0.11. --> v0.12.
    • Milestone: v0.11. --> v0.12.
     
  • gnosygnu
    gnosygnu
    2013-11-22

    Unfortunately, my weekend will be busy with English Wikipedia, so I'm moving this to v0.12.*.

     
  • gnosygnu
    gnosygnu
    2013-12-31

    • Expected release: v0.12. --> v1.1.
    • Milestone: v0.12. --> v1.1.
     
  • gnosygnu
    gnosygnu
    2013-12-31

    I'm moving this ticket to v1.1.*. Again, my focus is more on features related to "readable" wikis as opposed to "editable" ones.

     
  • gnosygnu
    gnosygnu
    2014-02-03

    • Expected release: v1.1. --> v1.2.
    • Milestone: v1.1. --> v1.2.
     
1 2 > >> (Page 1 of 2)


Anonymous


Cancel   Add attachments