Extension talk:SubPageList
This page used the LiquidThreads extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
kidsonly parameter bug
I had installed both this extension and Extension:SubPageList3 on the same wiki. It seems that both got into each others way because all of a sudden the kidsonly parameter (set to "yes") didn't work anymore with both extensions. Disabling this extension seems to have amended that issue. Nakohdo 07:56, 28 January 2011 (UTC)
- The idea is that you use only a single sub page list extension, not multiple. try only using SubPageList. That should work, and if it doesn't, this is a bug, which you should report. SubPageList being backwards compatible with SubPageList3 means that when using SubPageList3, and replacing it with SubPageList, the wikitext should still function the same. Jeroen De Dauw 11:53, 28 January 2011 (UTC)
- Thanks for the quick reply! Actually that was only for testing purposes ;-) Will try your suggestion. Nakohdo 14:59, 28 January 2011 (UTC)
- I disabled SubPageList3 but the kidsonly parameter doesn't work anymore, with neither syntax (tag or parser function) so it definitely looks like a bug.
- Looks like the parameter gets the kind of double negation wrong:
- kidsonly = yes will show all descendants, while kidsonly = no won't show any.
- hth
- BTW
- Which extension provides this cool forum style discussion page? Nakohdo 15:21, 28 January 2011 (UTC)
- Oops.. I fixed the negation issue on SVN, so it'll be fixed in the new release.
- This threaded discussion page works via LiquidThreads Jeroen De Dauw 18:11, 28 January 2011 (UTC)
- Thanks for the fix. I grabbed the code from SVN and the bug seems to be gone.
- However I get another error message:
Call to undefined method SubPageList::parseWikitext() in /extensions/SubPageList/SubPageList.class.php on line 157
- Seems the old parse() function is gone and not yet replaced by a new parseWikitext() function. Nakohdo 14:50, 31 January 2011 (UTC)
- I moved this function to Validator; so you also need to get the latest SVN version of that extension. Jeroen De Dauw 15:11, 31 January 2011 (UTC)
- Ah, thanks - will try that!
- EDIT
- Seems like there's a new bug. The first list item doesn't get rendered correctly (the same with UL and OL):
Nakohdo 17:26, 31 January 2011 (UTC)
- Yeah - I just also noticed this. It's because of my previous change. Will have a look at how to fix this soonish. Jeroen De Dauw 20:05, 31 January 2011 (UTC)
- I just fixed the bug on SVN :) Jeroen De Dauw 20:55, 13 February 2011 (UTC)
- Thanks! Will try asap. Nakohdo 14:34, 14 February 2011 (UTC)
- I moved this function to Validator; so you also need to get the latest SVN version of that extension. Jeroen De Dauw 15:11, 31 January 2011 (UTC)
- Thanks for the quick reply! Actually that was only for testing purposes ;-) Will try your suggestion. Nakohdo 14:59, 28 January 2011 (UTC)
No automatic update
When I add a new subpage the tree doesn't update until I hit the save button on the page containing the tree.
I use the following software: SubPageList (Version 0.2) Mediawiki 1.16.1 153.98.68.197 10:04, 23 February 2011 (UTC)
- This is the intended behaviour. MediaWiki caches the content of a page until it's saved or otherwise invalidated. This has little to do with the SubPageList extension, as any parser hook or tag extension behaves like this. Jeroen De Dauw 14:13, 23 February 2011 (UTC)
- I discovered it myself before I read your reply. I'll provide a quick link to purge the page from the cache in the sidebar then.
- Thanks anyway 153.98.68.197 09:43, 24 February 2011 (UTC)
page & parent parameter and Magic Words
I'm currently trying to establish Subpagelist as an output in my whole wiki using templates. So basically this means that my "parent" page for Subpages can be variable. MediaWiki Syntax already provides me with a path, which *should* be allowing me to show my directories in all wiki pages.
The code is:
<splist page={{BASEPAGENAME}} showpath=no sort=asc sortby=title liststyle=ordered showparent=yes kidsonly=yes />
I have tried this earlier with SubPageList3 but with the same results: Wiki Magic Words (as the one here used in the first line) seem to be fully ignored or simply read as string. In result i only see the subpages of my current page and not the "full" directory down to the basepage. Is there a way to achieve this? 212.47.167.170 14:55, 24 February 2011 (UTC)
- It seems to be working in the latest version. Are you using an older one? Jeroen De Dauw 22:18, 27 February 2011 (UTC)
- 0.2 according to my Special:Versions page. I cannot use SVN here due to company restrictions. Is the download provided at https://code.google.com/p/subpagelist/downloads/list up to date?
- I am also using multiple a nested template to call this function. Basically i have a "SubPageDisplay" on bottom of each of my articles. Its a box which contains 2 templates: "AddSubPageForm" and "ListSubpages", last of which contains exactly the code shown above. However when visiting subpages my shown root is always the currently opened subpage itself instead of the required basepage. Could this nesting be a problem?
- Another idea could be the fact that i just recently used Subpagelist3. Could there be some leftovers (caches, tables) that prevent this from working?
- Btw, the Parameters chapter is lacking a column for "valid parameters". Could be helpful to prevent misuse of this good extension. :) (Mike) 212.47.167.170 15:46, 1 March 2011 (UTC)
- Issue resolved. Seems to be a bug related to the old "splist" parser command. The following code is identical in behaviour to mine above, but works...
{{#subpages: | page={{BASEPAGENAME}} -- example in the documentation is missing a pipe here | format=ul | sortby=title | sort=asc | showpage=yes | kidsonly=yes -- This behaviour is inverted, i think that´s a known issue already }}
- ...while my code sample above doesn´t. This is either a parsing bug or intended changed behaviour towars SubPageList3 since my code hasn´t changed after the extension replacement. However i`m happy with the result now. Thank you for the support. :)
- (Mike) 212.47.167.170 16:04, 1 March 2011 (UTC)
- The fact that it's working in the tag extension for me is probably related to changes in the Validator extension, of which you can obtain the latest release here. In any case, some small issues have been fixed since version 0.2 of SubPageList, so I probably should release 0.3 soonish :) Jeroen De Dauw 02:46, 3 March 2011 (UTC)
Broken DB query in Postgres 8.3
I ran into an issue when trying to test this extension. I thought I would include it on the discussion page for any others who may encounter the problem in the future. If this isn't the appropriate place, let me know, and I'll make the adjustment accordingly.
A query in SubPageList.class.php was making terrible noise and prevented the extension from working with Postgres 8.3 on a FreeBSD server.
I received the following output:
Warning: pg_query() [function.pg-query]: Query failed: ERROR: operator does not exist: ` text LINE 1: ...e_namespace = '0' AND page_is_redirect = '0'AND (`page_titl... ^ HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts. in /var/www/wiki/includes/db/DatabasePostgres.php on line 584</pre> Looking in SubPageList.class.php I found the offending line: <source lang="php"> $conditions[] = '`page_title` LIKE ' . $dbr->addQuotes( $dbr->escapeLike( $title->getDBkey() ) . '/%' ); </source> The following minor edit fixed the problem: <source lang="php"> $conditions[] = 'page_title LIKE ' . $dbr->addQuotes( $dbr->escapeLike( $title->getDBkey() ) . '/%' ); </source> Hope documenting this somewhere helps someone out there. [[User:Swos|Swos]] 20:52, 4 March 2011 (UTC) :Thanks for pointing this out! I just fixed it on SVN, so the fix will be in the next release, which I will make in one of the next days :) [[User:Jeroen De Dauw|Jeroen De Dauw]] 22:24, 4 March 2011 (UTC) ::Sounds great! Thanks for maintaining this extension! [[User:Swos|Swos]] 04:58, 5 March 2011 (UTC) :::I just released v0.3, let me know if you find any more issues :) [[User:Jeroen De Dauw|Jeroen De Dauw]] 20:47, 5 March 2011 (UTC) ::::Thanks a lot. Will download it shortly and test alongside other extensions I need to install! [[User:Swos|Swos]] 15:00, 8 March 2011 (UTC) == Sub-sub pages not showing == I've installed the plugin and it works ok for top level pages with sub pages, but not for sub-sub pages. So my layout is a > b > c It just shows a & b on page a (missing c), and shows nothing on page b. Am I doing something wrong? Thanks [[Special:Contributions/165.1.1.4|165.1.1.4]] 21:26, 4 April 2011 (UTC) :What version of SubPageList are you using? Also, can you link to where this is occurring? [[User:Jeroen De Dauw|Jeroen De Dauw]] 22:00, 4 April 2011 (UTC) ::I have a similar issue using the recent 0.3 Version of SPL. Using the following structure: ::Mainpage ::: SubPage1 ::: SubPage2 ::Then i add a Subpage1.1 to Subpage1 and go back to see the hierarchy. It now should show like: ::Mainpage ::: SubPage1 ::::SubPage 1.1 ::: SubPage2 ::...but my listing is still showing no childs of Subpage1. However the new child '''is''' shown when i click on SubPage2. [[Special:Contributions/195.141.78.241|195.141.78.241]] 12:58, 8 June 2011 (UTC) :::So SubPage 1.1 show when you click SubPage2? Sorry, but this is to vague for me to debug; can you link to where this occurs and write down the steps to reproduce? [[User:Jeroen De Dauw|Jeroen De Dauw]] 17:37, 8 June 2011 (UTC) ::::Can't link you to an example - internal wiki - sorry. But you already understoof what i meant. ::::# Have one Main Level Page - MyPage ::::# Create two Sub Level Pages - MyPage\SubPage1 & MyPage\SubPage2 ::::# Add a child to the first Sublevel page MyPage\SubPage1\Child1 ::::# Browse back to MyPage\SubPage1 = Child1 is '''not''' shown ::::# Browse to either MyPage or SubPage2 = Child of SubPage1 is shown ::::This is what i saw yesterday right after creating the Child (3rd Level Page). However, what i saw today is: Display of Subpages is correctly up to 2 levels. Once you visit the 3rd level (Child1 in my Example), the Navigation structure only shows a concatenated string of "MyPage\SubPage1" and the currently active child. ::::Here is my configuration if that helps: :::: {{#subpages:| page={{BASEPAGENAME}} | format=ul | sortby=title | sort=asc | showpage=yes | kidsonly=no }} ::::I guess the BASEPAGENAME-part is messing up the navigation. I need it though since i use your addon in templates for all of my pages. And as foresaid: its working fine as long as i don't use a 3rd Level. :) [[Special:Contributions/195.141.78.241|195.141.78.241]] 11:53, 9 June 2011 (UTC) :::::This is what i saw yesterday right after creating the Child (3rd Level Page). However, what i saw today is: Display of Subpages is correctly up to 2 levels. :::::Sounds like a caching issue. The sub page lists do NOT refresh automatically in most cases, they only do (since the last version of this extension) for top level pages when editing any of their subpages. Hit the refresh button in the UI, or append ?action=purge to the page title in your browsers url bar when viewing the page and hit enter. [[User:Jeroen De Dauw|Jeroen De Dauw]] 19:11, 13 June 2011 (UTC) == Fatal error: Call to undefined method DatabaseMysql::buildLike() == After installing SubPageList, and adding the default plain-jane tag to a page that has subpages, I get this error: *Fatal error: Call to undefined method DatabaseMysql::buildLike() in /var/www/extensions/SubPageList/SubPageList.class.php on line 209 Did I miss something in the configuration? [[User:Glitch25|Glitch25]] 17:33, 13 April 2011 (UTC) :What version of MediaWiki are you using? [[User:Jeroen De Dauw|Jeroen De Dauw]] 21:56, 13 April 2011 (UTC) ::Mediawiki 1.15.3 Let me know if you need anything more. [[User:Glitch25|Glitch25]] 22:55, 13 April 2011 (UTC) :::Apparently the missing method was added in MediaWiki 1.16. I corrected the required MediaWiki version on the extension page and suggest you update to the latest MediaWiki release if possible. [[User:Jeroen De Dauw|Jeroen De Dauw]] 23:20, 13 April 2011 (UTC) ::::Understood! Thank you much! [[User:Glitch25|Glitch25]] 23:21, 13 April 2011 (UTC) == Option and confusion about capital letters Yes/No versus yes/no == Hi, While using checkboxes to decided whether to display parents/kidsonly or not, we came in trouble with the capital letter writing of Yes/No. That is using checkboxes automatically returns Yes/No and not yes/no and it seems that the extension only understands small letter yes/no while using Yes/No as parameters the extension ignored the choices. Tested version, SubPageList (Version 0.3) (r88881). [[User:MWJames|MWJames]] 08:36, 26 May 2011 (UTC) :Indeed; issue confirmed. You found a bug in Validator actually. It's fixed now. Updating it from SVN should resolve your problem :) [[Special:Contributions/212.123.29.152|212.123.29.152]] 13:15, 26 May 2011 (UTC) == Showing siblings and the parent == It would be nice if the subpage could display its siblings and the article above it. Also, when the "showparent" or "showpage" option is selected, the text is not displayed clearly. The subpages overwrite it. There is a module called Subpages Fun that includes additional subpage variables. Maybe that could be used to implement this idea. [[User:Zzmonty|Zzmonty]] 01:27, 9 August 2011 (UTC) :Figured out how to display the parent and the siblings on a subpage: :<code> {{#subpages:| page={{#titleparts: {{BASEPAGENAME}}| 1 }} | showpage=yes}}</code> :The titleparts displays the siblings, and then the showpage displays the parent. Hope this is useful for somebody else. [[User:Zzmonty|Zzmonty]] 02:21, 9 August 2011 (UTC) ::Forgot to set the nowiki :: {{#subpages:| page={{#titleparts: {{BASEPAGENAME}}| 1 }} | showpage=yes}} ::Hopefully it is display correctly now. [[User:Zzmonty|Zzmonty]] 02:23, 9 August 2011 (UTC) :::Thanks for mentioning that. Very helpful indeed and just what i was looking for to display huge project structures. :) (Mike) [[Special:Contributions/195.141.78.241|195.141.78.241]] 13:36, 23 September 2011 (UTC) == Number of subpages? == Any chance to implement a magic word returning the number of (direct) subpages of a page? [[Special:Contributions/85.180.152.77|85.180.152.77]] 12:28, 10 August 2011 (UTC) :Why a magic word and not some parser function? When implementing such a thing, it'd be not hard to have several variations on that, for example the number of direct parent pages, the number of non-direct subpages, or the number of all pages in the tree. This could be done w/ a parser function and some parameters, but not a magic word. :In any case, what's the exact usecase? Convince me this feature would be useful to have :) [[User:Jeroen De Dauw|Jeroen De Dauw]] 22:41, 10 August 2011 (UTC) ::It would be nice to use those functions in parser functions like #if: to choose the formatting of the subpages. Especially, on 0 subpages I would like to omit the message: 'Page "topPage" has no subpages to list'. A conveniant but maybe expensive alternative to the last use case would be to allow to configure the error message to the empty string, and use the {{#subpages:}} directly in the if condition. [[User:Tomaschwutz|Tomaschwutz]] 15:27, 16 January 2012 (UTC) == Using Slash / in a page name == In my example a user created a page with a slash inside its name: "Connect RS232 over TCP'''/'''IP" When i call my subpage-list i get the error "Page "Connect RS232 over TCP" does not exist". So it's pretty clear that the page name gets cutoff after the slash. Here's the parameters that i've used: {{#subpages:| page={{#titleparts:{{BASEPAGENAME}}|1}} | format=ul | sortby=title | sort=asc | showpage=yes | kidsonly=no }} What could be the problem here? is this a bug or can it be circumvented? [[Special:Contributions/195.141.78.241|195.141.78.241]] 12:15, 3 October 2011 (UTC) :Oh and just tested if the "titleparts" is causing the problem. The answer is no. :<code> {{#subpages:| page={{BASEPAGENAME}} </code> :delivers the same error. (Mike) [[Special:Contributions/195.141.78.241|195.141.78.241]] 12:20, 3 October 2011 (UTC) ::Sorry, meant to say: ::<code> {{#subpages:| page={{BASEPAGENAME}} </code> ::delivers the same error as: ::<code> {{#subpages:| page={{#titleparts:{{BASEPAGENAME}}|1}} </code> ::(Mike) [[Special:Contributions/195.141.78.241|195.141.78.241]] 12:22, 3 October 2011 (UTC) :The part after flashes is either a sub page or not, this extension assumes it is. You can't have both without having some additional system for specifying if something is a sub page or not. [[User:Jeroen De Dauw|Jeroen De Dauw]] 18:44, 3 October 2011 (UTC) == Error Deleting Pages == I'm now getting the following error when trying to delete any page on the wiki. Any ideas why?? Catchable fatal error: Argument 1 passed to SPLHooks::onArticleDeleteComplete() must be an instance of Article, instance of WikiPage given in /home/racecari/public_html/w/extensions/SubPageList/SubPageList.hooks.php on line 43 [[User:Ozstang65|Scott D]] 06:04, 27 December 2011 (UTC) :Are you using the latest version? I think this is already fixed. [[User:Jeroen De Dauw|Jeroen De Dauw]] 11:53, 27 December 2011 (UTC) ::Hi Jeroen, it shows up as 0.4 on my versions page. Downloaded from link on extension page: https://code.google.com/p/subpagelist/downloads/list?can=1 ::I tried version 0.3 also, same thing. Initially I had an earlier version of Validator but I am now using the latest one (downloaded with your package)0.4.9 alpha. No change there either. ::- Scott ::edit, i used the .zip download [[User:Ozstang65|Scott D]] 12:03, 27 December 2011 (UTC) :::Fix was made several months ago, but I did not make a release since then, so just did that now. Please try the new version. [[User:Jeroen De Dauw|Jeroen De Dauw]] 16:11, 27 December 2011 (UTC) ::::Thanks Jeroen, limited testing shows all OK sofar. Thanks for a very handy extension! ::::- Scott [[User:Ozstang65|Scott D]] 09:44, 28 December 2011 (UTC) == Subpages of Parent Page to be listed == Can we have a simple additional parameter field that will list the subpages of the parent page. Currently by default the subpages of the current page is listed. A similar method to have subpages of parent page to be listed would be optimal. If there is another simple method please let me know. Thank You! [[User:Wikimanz|Wikimanz]] ([[User talk:Wikimanz|talk]]) 00:49, 23 February 2012 (UTC) :You can use the page parameter and set it to the name of the parent page. Not sure how you can easily obtain the name of the parent page though, but would be very surprised if it was not possible. I suggest asking on the wikitech-l list or {{irc|mediawiki}} irc. [[User:Jeroen De Dauw|Jeroen De Dauw]] ([[User talk:Jeroen De Dauw|talk]]) 13:01, 23 February 2012 (UTC) ::<poem> ::Thanks Jeroen, as you suggested at the IRC I learned that I can use {{#titleparts:}}from [[Help:Extension:ParserFunctions|ParserFunctions extension]] ::This parser function allows for more complex splitting of page names and might be useful when one wants to display only a specific part of the full page title. ::example. {{#titleparts: one/two/three/four|1|2 }} → two ::However, after that I learned that the actual name of the basepage is what I need for this extension SubPagelist. {{BASEPAGENAME}}. However the use of {{BASEPAGENAME}} in the page page name parameter does not work for me either in the tag or parser function of this extension. {{BASEPAGENAME}} by it self does output the correct base page name and when used in the parser function of this extensions I get a page does not exist message outputting the correct base page name. I have mediawiki 1.18.1 with the most recent Validator and SubPageList. ::Few of what I tried: ::<subpages page="{{BASEPAGENAME}}" format="ul" pathstyle="no" sortby="lastedit" sort="asc" showpage="yes" kidsonly="yes"/> or {{#subpages: | page={{BASEPAGENAME}} | format=ul | pathstyle=no | sortby=lastedit | sort=asc | showpage=yes | kidsonly=yes }} ::P.S I also saw similar problem in another extension flashmp3 extension, where I was able to produce an external link with magic words like {{BASEPAGENAME}} to link to an S3. Although it does output the correct page name and links it never worked when I used it in tags for the extension. ::</poem> [[User:Wikimanz|Wikimanz]] ([[User talk:Wikimanz|talk]]) 20:14, 23 February 2012 (UTC) :::Works for me. At least the parser function. This is with the latest version of the extension and Validator. Are you sure you got the latest version of Validator? [[User:Jeroen De Dauw|Jeroen De Dauw]] ([[User talk:Jeroen De Dauw|talk]]) 20:36, 23 February 2012 (UTC) ::::Solved - Notice! ::::I tested my other extensions to see if there is a conflict with SubPageList and I found out that the cause of this error was the extension SubPage Fun. I had installed this extension along with SubPageList and although SubPageList works when I input the actual page names into the tag and parser functions of SubPageList, it didn't work when I used Magic words like {{BASEPAGENAME}}. I'm not sure if this can be replicated by others but if is a known conflict it might be useful to mention it on the extension page so others won't have the same problem I did. ::::Thanks Jeroen! [[User:Wikimanz|Wikimanz]] ([[User talk:Wikimanz|talk]]) 23:03, 23 February 2012 (UTC) == Working with older versions of MediaWiki ? == Hi. I have a 1.15.1 Wiki and when I use this extension I get a 500 Error on my page. Is it not compatible ? [[Special:Contributions/92.103.239.248|92.103.239.248]] 09:49, 23 May 2012 (UTC) :On the extension page it says that the extension needs MediaWiki 1.16 at least, so I guess you need to update MediaWiki to make it compatible. :After a Server Error 500 you will also find information in the Apache Log (if you have access to it). [[Special:Contributions/88.130.82.123|88.130.82.123]] 10:08, 23 May 2012 (UTC) ::If I could update I wouldn't ask here. ::The thing is, SubPageList3 works on that version of Wiki but not this extension. ::Yes I find some of the features this one has quite interesting and would like to know if it would be a lot of work to make it work on 1.15.x... ::Thanks for your answer ^_^ [[Special:Contributions/92.103.239.248|92.103.239.248]] 11:44, 23 May 2012 (UTC) :::Ok so version 0.4 Is compatible with 15.x. :::So I'll try to go with that. :::Thanks. [[Special:Contributions/92.103.239.248|92.103.239.248]] 11:47, 23 May 2012 (UTC) == Sort case-INsensitively by page title == I have implemented a solution to sort case-insensitively by page title (as an option). <code> <subpages sort_ci=yes /> </code> {| |- | By default (case-sensitive): <pre>A B ... Z a ...
| => | With parameter sort_ci (case-insensitive):
A a B ... Z ...
|}
@Jeroen De Dauw
would you like to integrate this feature into SubPageList? It hk (talk) 01:28, 21 November 2012 (UTC)
- Yeah, I'd love to :)
- Could you provide a patch? Ideally via Git. Jeroen De Dauw (talk) 13:23, 21 November 2012 (UTC)
show in sidebar
- Im looking for a way to display the a subpagelist for the current root page.
- So if there are foo, foo/bla1 and foo/bla2, no matter on which page i am, there is always a subpage list for foo displayed on the sidebar.
- does someone very clever know how to do this? :(
- -vier 213.129.230.10 03:44, 27 January 2013 (UTC)
- Use the page parameter to specify which page you want to display subpages for. Jeroen De Dauw (talk) 15:14, 28 January 2013 (UTC)
- It would be great if you could explain more. Berot3 (talk) 14:06, 3 July 2020 (UTC)
- How do you set the page parameter? does this work on SubpageList3 108.171.128.180 (talk) 16:15, 18 May 2020 (UTC)
Maps and subpage list issue
Hi, first and foremost thanks for all the great extensions. I've found an issue with Extension:Maps and this extension. After much searching (since I had sublist as part of an infobox) I've found that if sublist is used before a map I get a fatal exception. If sublist is used after a map everything works fine. Strangely if I use a map first, then sublist, and then followed by a map everything works fine.
I'm using SubPageList (Version 0.5),Maps (Version 2.0.1), Validator (Version 0.5.1), MediaWiki 1.20.2, PHP 5.4.10 (apache2handler) & MySQL 5.5.28-log.(I also posted this question on the Maps Discussion tab) Christharp (talk) 02:37, 14 February 2013 (UTC)
- Please do not copy stuff all over ;) Extension talk:Maps/Flow archive/2013#c-Christharp-2013-02-14T02:34:00.000Z-Maps_and_subpage_list_issue Jeroen De Dauw (talk) 15:46, 14 February 2013 (UTC)
Format=list does't produce comma separated results
Using the current version of SubPageList(0.5) and MW 1.17, the list is returned with dot separating the values. Is this per design and the documentation incorrect, or is the documentation correct and the extension not working according to design? 12.167.75.11 15:20, 10 April 2013 (UTC)
Sort order of sub pages
Hi,
I use on all subpages of Mmstat3:Statistik I&II the same call:
<subpages page="Mmstat3:Statistik I&II" format="ol" sortby="lastedit" />
However, it looks different on all (sub)pages:
- Mmstat3:Statistik I&II/Grundbegriffe der Statistik
1. Wahrscheinlichkeitsrechnung 2. Eindimensionale Häufigkeitsverteilung 3. Grundbegriffe der Statistik
- Mmstat3:Statistik I&II/Eindimensionale Häufigkeitsverteilung
1. Wahrscheinlichkeitsrechnung 2. Grundbegriffe der Statistik 3. Eindimensionale Häufigkeitsverteilung
- Mmmstat3:Statistik I&II/Wahrscheinlichkeitsrechnung
1. Grundbegriffe der Statistik 2. Eindimensionale Häufigkeitsverteilung 3. Wahrscheinlichkeitsrechnung
- Mmstat3:Statistik I&II
1. Grundbegriffe der Statistik 2. Eindimensionale Häufigkeitsverteilung 3. Wahrscheinlichkeitsrechnung
The last one is correct one, ordered by the last edit of the page. Any ideas? Sigbert (talk) 16:45, 18 May 2013 (UTC)
- Results of <subpages> get cached in your page just like any other content. Jeroen De Dauw (talk) 17:42, 20 May 2013 (UTC)
Support for Validator 0.5.1
Hello, Subpagelist with Validator 0.4.14 had been working very well on my wiki for a long time. I just upgraded Validator 0.4.14 to the latest one Validator 0.5.1 and after adding the DataValues extension my SubPagelist extension broke with this error message, Fatal error: Call to undefined method DataValues\UnknownValue::isValid() in /home/wiki/public/wiki/public/a/extensions/Validator/includes/ParamProcessor/Param.php on line 298
I updated DataValues, SubPagelist and Validator via git. I currently have mediawiki 1.21. I have temporarily reverted back to validator 0.4.14 and also to older subpage list. Combining New Validator with the older subpagelist 0.3 gives the following error. Fatal error: Class 'Parameter' not found in /home/wiki/public/wiki/public/a/extensions/SubPageList/SubPageList.class.php on line 63
Thanks for the great extension. My wiki completely depends on this. Hoping a fix to come. Wikimanz (talk) 15:13, 7 July 2013 (UTC)
- The latest git versions (SPL, Validator and DataValues) appear to be working with each other. Is that not the case for you? Jeroen De Dauw (talk) 17:34, 7 July 2013 (UTC)
How to list subpages randomly?
I currently use this extension to list subpages according to last edited or alphabetically. However, I currently have the need to show different subpage to appear randomly so the same list of pages will not be showing up all the time. Is there a way to have subpages to be listed randomly with no order whatsoever? I have tried not putting any "sortby" parameter but the default setting kicks in.
Thank you Wikimanz (talk) 22:17, 11 July 2013 (UTC)
- This is not currently possible. It is however a nice idea for the next version. Jeroen De Dauw (talk) 12:56, 12 July 2013 (UTC)
Fatal error: Coll to undefined method ...
This post by タチコマ robot was moved on 2015-06-26. You can find it at Extension talk:MultiLanguageManager/Archive 2/Flow export#h-Fatal_error:_Call_to_undefined_method_...-2014-09-17T17:32:00.000Z. [[kgh]] (talk) 18:35, 17 September 2014 (UTC)
Fatal error: Class 'SubPageList\Extension' not found in /var/sites/c/cablefree.net/public_html/support/radio/software/extensions/SubPageList/SubPageList.php on line 50
Fatal error: Class 'SubPageList\Extension' not found in /var/sites/c/cablefree.net/public_html/support/radio/software/extensions/SubPageList/SubPageList.php on line 50
How did this occur?
Hosted on a "Linux Server" on the ISP: Product Version MediaWiki 1.24.1 PHP 5.4.28 (cgi-fcgi) MySQL 5.6.21 62.232.223.74 21:56, 23 January 2015 (UTC)
- My guess is that you did not do the "composer install" step described in the installation instructions. Jeroen De Dauw (talk) 12:28, 31 January 2015 (UTC)
template parameter not evaluated when output
Using MW 1.25.1, I cannot seem to get the template parameter to work. Here are some examples using "Test Page", "Test Page/Subpage {1|2|3}", and "Template:Subpage list template" with the definition: "There is a subpage named {{{1}}}".
Works
{{#subpages:}}
- Subpage 1
- Subpage 2
- Subpage 3
{{#subpages:pathstyle=full}}
- Test Page/Subpage 1
- Test Page/Subpage 2
- Test Page/Subpage 3
* {{Subpage list template|Test Page/Subpage 1}}
* {{Subpage list template|Test Page/Subpage 2}}
* {{Subpage list template|Test Page/Subpage 3}}
- There is a subpage named Test Page/Subpage 1
- There is a subpage named Test Page/Subpage 2
- There is a subpage named Test Page/Subpage 3
Fails
{{#subpages:template=Subpage list template}}
- {{Subpage list template|Test Page/Subpage 1}}
- {{Subpage list template|Test Page/Subpage 2}}
- {{Subpage list template|Test Page/Subpage 3}}
So it appears that the list is generated correctly, but the resulting output is not passed through the template renderer.
Any clues about what could be preventing the output from being rendered as part of the extension when it renders as part of the page correctly? Chiefgeek157 (talk) 12:55, 29 July 2015 (UTC)
If I am not mistaken, I would assume that HookRunner.php line 96 is the one that is supposed to render the template rather than return the wikitext containing the generated template text.
94 protected function getProcessedResultText( $resultText ) { 95 if ( $this->getOption( self::OPT_DO_PARSE ) ) { 96 return $this->parser->recursiveTagParse( $resultText, $this->frame ); 97 } 98 return $resultText; 99 }
I am not skilled enough to debug this and confirm $resultText versus the output of $this->parser->recursiveTagParse($resultText). I tried commenting out the if statement to force the call to recursiveTagParse, but that did not change the result. Chiefgeek157 (talk) 17:11, 30 July 2015 (UTC)
After more testing, I discovered that the "template" parameter doesn't appear to work.
In parser function mode as {{#subpages:|template=My template}}, the function Parser->recursiveTagParse() is never called because FunctionRunner is not passed the Parser instance.
In tag mode as <subpages template="My template"/> the HookRunner does call Parser->recursiveTagParse(), but the expansion is messed up. The content doesn't get put into the list item, but outside, and each item becomes a separate list.
<div class="subpagelist"> <ul><li> </li></ul> <p>There is a subpage named Test Page/Subpage 1 </p> <ul><li> </li></ul> <p>There is a subpage named Test Page/Subpage 2 </p> <ul><li> </li></ul> <p>There is a subpage named Test Page/Subpage 3 </p> </div></nowiki>
Chiefgeek157 (talk) 21:31, 30 July 2015 (UTC)
Composer install
Can SubPage List be installed without composer? Legaulph (talk) 14:42, 1 April 2016 (UTC)