Page MenuHomeMiraheze

Add footer link option for extension ContactPage
Closed, ResolvedPublic

Description

Extension:ContactPage
atm users can enable extension and set up user w/ confirmed email for it, but the contact form can be accessed only by typing "Special:Contact" in URL, the link doesn't seem to appear in Special:SpecialPages.
according to extension's documentation a footer link for Special:Contact can be created by adding code in LocalSettings.php.
there needs to be either an option in ManageWiki settings to add footer link, or footer link has to be there for any wiki using this extension.

Event Timeline

Agent_Isai claimed this task.

This can be requested by users individually who can do a PR themselves or give us the code for it but as it is intended behavior for the page to not appear in Special:SpecialPages and as it's not built-in functionality to provide such a link in the footer, this cannot be added to ManageWiki unfortunately.

RhinosF1 subscribed.

The code is on the extension page. It would be extremely easy to offer this as a setting in ManageWiki and we've done custom hooks for wikis before.

Please don't close tasks because you don't want to do the research to see how it's possible.

The code is on the extension page. It would be extremely easy to offer this as a setting in ManageWiki and we've done custom hooks for wikis before.

Please don't close tasks because you don't want to do the research to see how it's possible.

If you know how to do it please do feel free to help out with a PR.

@RhinosF1 How do you do this with ManageWiki? Does it allow to run code as well as setting variables? I don't see this used anywhere on mw-config.

Would copypasting https://www.mediawiki.org/wiki/Extension:ContactPage#Adding_a_link_to_special_page_%22Contact%22_to_the_footer on LocalWiki.php be okay?

You'll need to create a new $wmg variable and guard the hook with it. Add that variable to ManageWiki.