Jump to content

Topic on Extension talk:SubPageList

kidsonly parameter bug

11
Nakohdo (talkcontribs)

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.

Jeroen De Dauw (talkcontribs)

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.

Nakohdo (talkcontribs)

Thanks for the quick reply! Actually that was only for testing purposes ;-) Will try your suggestion.

Nakohdo (talkcontribs)

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?

Jeroen De Dauw (talkcontribs)

Oops.. I fixed the negation issue on SVN, so it'll be fixed in the new release.

This threaded discussion page works via LiquidThreads

Nakohdo (talkcontribs)

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.

Jeroen De Dauw (talkcontribs)

I moved this function to Validator; so you also need to get the latest SVN version of that extension.

Nakohdo (talkcontribs)

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):

Jeroen De Dauw (talkcontribs)

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 (talkcontribs)

I just fixed the bug on SVN :)

Reply to "kidsonly parameter bug"