Menu

#344 Per-wiki option to load images

PFE
pfe
nobody
options (3)
v2.*
2014-10-10
2014-10-09
Anonymous
No

It should be possible to specify on a per-wiki basis whether images should be loaded or not. I have images for de.wikipedia, but not for any other wiki. When I open a page on de.wikibooks XOWA tries to retrieve images for this page, which fails. As this takes some time and blocks redlinks until finished, there should be an option to tell XOWA just not to try to load images for this wiki (and my other wikis except Wikipedia). --Schnark

Discussion

  • gnosygnu

    gnosygnu - 2014-10-10

    There is a way to do this in XOWA today, but it's manual, and will probably change in a future release.

    That said, try the following:

    • Go to home/wiki/Help:Options/Config_script
    • Enter in the following
    app.wikis.get('de.wikibooks.org').files.cfg_download.enabled = 'n';
    

    This is the same as unchecking "Retrieval enabled" on home/wiki/Help:Options/Files, but only for de.wikibooks.org

    You'd repeat as necessary for the others. You can also try the reverse.

    • Unchecking "Retrieval enabled" on home/wiki/Help:Options/Files
    • Turn it on for de.wikipedia.org only
    app.wikis.get('de.wikipedia.org').files.cfg_download.enabled = 'y';
    

    Let me know if the above works for you. If it does, I'll come up with a more permanent API for v1.10.2. Something like "xowa.api('de.wikipedia.org').file.download.enabled = 'y'"

    On a longer term basis, XOWA doesn't support wiki-specific Option pages. This is an item first reported here: https://sourceforge.net/p/xowa/tickets/181/. It's high on my list of major todo items, but I haven't had a chance to work on it.

    I'm going to mark this ticket as PFE as well, and will do it sometime after Android.

    Let me know if there's anything else. Thanks.

     

    Last edit: gnosygnu 2014-10-10
  • gnosygnu

    gnosygnu - 2014-10-10
    • labels: --> options
    • status: new --> queued
    • Expected release: --> v2.*
    • Milestone: v1.8.* --> PFE
     
  • gnosygnu

    gnosygnu - 2014-10-10
    • status: queued --> pfe
     

Anonymous
Anonymous

Add attachments
Cancel