Extension talk:SubpageNavigation

From mediawiki.org
Latest comment: 28 days ago by Thomas-topway-it in topic Do not show subpages which are redirects

DBprefix[edit]

Currently, the extension checks for pages in a table called "page", even if a $wgDBprefix is configured. I adjusted the code to use the database prefix, which made it work on the wikis I was testing with. I tried to make an account to use Gerrit but couldn't figure it out. So feel free to incorporate the changes from my GitHub.

Project Termina (talk) 16:48, 28 November 2023 (UTC)Reply

yes, you are right, I just noticed this issue a few days ago, I planned to fix it Thomas-topway-it (talk) 21:11, 28 November 2023 (UTC)Reply
Okay, finally figured out how to submit changes to Gerrit. gerrit:982464
Project Termina (talk) 20:27, 12 December 2023 (UTC)Reply
@Project Termina fixed in the latest version, thank you Thomas-topway-it (talk) 14:19, 17 December 2023 (UTC)Reply

Hierarchical list of subpages[edit]

Really nice functionality! Would it be possible to add the ability to show subpages hierarchically (indented) similar to how the extensions SubPageList & SubPageList3 display the lists? Bryandamon (talk) 05:36, 13 December 2023 (UTC)Reply

@Bryandamon I have just updated the extension, now the count of subpages (direct children) is retrieved correctly. Regarding your request, because the extension by design retrieves only direct children, there is not hierarchical indentation. The extension retrieves only direct children by purpose with the aim to navigate pages/subpages as for other Mediawiki's special pages with navigation (with offset and limit). Otherwise you can also retrieve a limited number of subpages for each level. Thomas-topway-it (talk) 14:18, 17 December 2023 (UTC)Reply

Breadcrumbs[edit]

If $wgSubpageNavigationDisableBreadcrumb = false; (the default), the breadcrumbs show up with the extensions formatting in the Main namespace, however all other namespace breadcrumbs normally provided by MW are hidden. Is it possible to allow the extensions version on all other namespaces? Bryandamon (talk) 21:48, 28 December 2023 (UTC)Reply

Do not show subpages which are redirects[edit]

In my use case, there are often pages which start out in one place in the subpage hierarchy and are moved to another place, leaving behind a redirect at the old page name/path so that links to that old location do not break. However, these accumulating redirects are still listed in the subpage navigation, causing visual clutter and harder navigation. I think that for many wikis it would make sense to keep subpage redirects in the navigation, but for some wikis it does not. So I propose that a new global variable set in LocalSettings.php would allow each wiki to opt-in to hiding redirects in the subpage navigation. Additionally, Special:SubpageNavigationbrowse could have a GUI checkbox to show or hide redirects, similar to Special:AllPages.

Project Termina (talk) 18:55, 27 March 2024 (UTC)Reply

@Project Termina the latest version should already implement that (the query contains AND page_is_redirect = 0 ) can you please check the latest version ? thank you Thomas-topway-it (talk) 11:30, 29 March 2024 (UTC)Reply