Jump to content

Extension talk:NoTitle

Add topic
From mediawiki.org
Latest comment: 2 years ago by Aafi (DCW) in topic Weird behavior

Regressions in the New Version

[edit]
Have you tried to run the latest version of this extension? I can't maintain a testing environment for every possible wiki version and configuration. So, I was hoping you might list your Mediawiki Version and whether it worked or not? If it doesn't work, I can work on fixing it. Thanks a lot! AABoyles (talk) 19:35, 22 January 2013 (UTC)Reply
I have just tested it on a 1.19.3 instance. I does not work as expected. After doing an &action=purge the title gets hidden. However after going to another page and than returning to the page with the hidden title it gets shown again until I do a purge once again. [[kgh]] (talk) 18:37, 23 January 2013 (UTC)Reply
Thanks a lot, kgh. I've injected a tiny bit of JavaScript to hopefully fix that for cached pages. The fix is on Github. AABoyles (talk) 20:06, 23 January 2013 (UTC)Reply
Hi Tony, I will test tomorrow. Lot's of things in the pipeline today. Cheers [[kgh]] (talk) 21:12, 24 January 2013 (UTC)Reply
I just did the testing and I still found a problem. The title gets hidden automatically the first time I access the respective page without having to purge it. After going to another page and than returning to the page with the hidden title it gets shown until I do a purge. [[kgh]] (talk) 17:00, 25 January 2013 (UTC)Reply
Hey,
same problem here. Got a MW 1.20.2. After purge the title is hidden but it comes back and i don't know why. i'm using the lastest version from github.
maybe there is a problem with other extensions?
i'm also using the vektor extension i think there is the problem
greetings from germany
torferde :) 2001:638:708:30D1:500B:6200:FE03:A563 14:16, 31 January 2013 (UTC)Reply
so, more input:
after ?action=purge on the mainpage the title is gone.
when i expand/collapse the navigationbar, the Extension:Vektor make the title on the mainpage show :(
in the head section of the html document are some css style definitions - i don't understand yet - i think the problem is in the cache key from the other extension 2001:638:708:30D1:500B:6200:FE03:A563 17:12, 31 January 2013 (UTC)Reply
Doesn't work for me either. I used to put
{{DISPLAYTITLE:<span style="display:none">{{FULLPAGENAME}}</span>}}
instead but that doesn't work anymore after upgrading. Guido den Broeder (talk) 20:32, 20 August 2014 (UTC)Reply
Never mind, after adding $wgRestrictDisplayTitle = false; (and waiting several minutes) both methods seem to work. Guido den Broeder (talk) 20:47, 20 August 2014 (UTC)Reply
la ultima versión (4.0.0) funciona en mediawiki 1.29+ 189.217.121.254 (talk) 20:39, 8 March 2019 (UTC)Reply

This extension doesn't work 1.19+ - but heres something that does

[edit]

http://www.sciencemedianetwork.org/wiki/Mediawiki/Hiding_the_main_page_title 203.109.175.201 06:56, 26 January 2013 (UTC)Reply

Yeah, this is an know issue. See here. Alternatives are provided here locally, too. [[kgh]] (talk) 12:31, 26 January 2013 (UTC)Reply
I've just upgraded to 1.20.2 (from 1.15) and the NO_TITLE extension does not work.
I tried those suggest CSS fixes. They work. However I have 100s of pages all with __NO_TITLE__ in them - which displays a line "1. NO_TITLE on the top of every page. This looks very ugly.
I would like to get this extension working to the point where at least NO_TITLE is recognized by the wiki so it doesnt display this ugly text.
Any ideas here? 204.14.239.208 08:38, 10 February 2013 (UTC)Reply
I placed the code on the page. Choshi (talk) 03:03, 15 May 2013 (UTC)Reply
Try using Extension:Replace Text to remove all of the __NOTITLE__ tags from your site. OncMD (talk) 21:46, 28 February 2015 (UTC)Reply

BUGS

[edit]

When you place the magic word __NOTITLE__ into the article field and save, it causes the edit tab to become unresponsive, hereby keeping the administrator from editing the page. The only fix is to uninstall the extension. If this is being maintained please fix this, as this is a very useful extension. (I was using MWv 21.3 (Monobook) IP 74.65.145.203 15:25, 7 December 2013 (UTC)

Does not work in 1.23 RC

[edit]

I just updated a test instance of MediaWiki and I'm getting an error.

Fatal error: Cannot access protected property Parser::$mDoubleUnderscores in /var/www/html/w/extensions/NoTitle/NoTitle.php on line 30

It's also worth noting that the LanguageGetMagic hook has been depreciated as well.

I've tried to figure out a work around, but am not savvy enough. If someone else has a recommendation, it would be greatly appreciated. Ckoerner (talk) 16:20, 13 May 2014 (UTC)Reply

The documentation for this extension is out of date. The code displayed is not current. The most recent, and working, build is located on Gerrit. Here's a github mirror: https://github.com/wikimedia/mediawiki-extensions-NoTitle Ckoerner (talk) 16:30, 13 May 2014 (UTC)Reply
Hmm ..., this thread claims that the extension is broken for 1.19+, which is basically the reason why there is in wiki code. However it is nice to hear that this extension works for recent versions. I will fluff up the extension's page now. [[kgh]] (talk) 16:35, 13 May 2014 (UTC)Reply

Does not work on Category pages

[edit]

I tried using __NOTITLE__ on a category page and it did not work... any ideas? Wikilyrics (talk) 19:08, 5 June 2014 (UTC)Reply

add
$wgRestrictDisplayTitle = false;
to the bottom of your LocalSettings.php, and then __NOTITLE__ will work. 174.140.182.136 17:46, 20 June 2014 (UTC)Reply
That's a good info which I just incorporated into the extension's documentation. Thank you. [[kgh]] (talk) 18:50, 20 June 2014 (UTC)Reply

Not working with MW 1.23.2?

[edit]

Hi.

I've just upgraded a site to 1.23.2 and __NOTITLE__ no longer appears to work. I'm running version 0.2.0 with the standard Vector skin.

Any ideas?

Thanks. Mitchelln (talk) 11:38, 26 August 2014 (UTC)Reply

Did you set $wgRestrictDisplayTitle to "false"? [[kgh]] (talk) 11:39, 26 August 2014 (UTC)Reply
Yes, I have this set and the page title still displays. Mitchelln (talk) 15:53, 10 September 2014 (UTC)Reply
Just successfully tested this extension on << MW 1.23.3 - PHP 5.4.4 - MySQL 5.5.38 >> with Vector. Just added the magic word and the magic started to happen. Probably where is something in the water with you custom skin? Edit: Ah, you are testing with Vector, too. That's really obnoxious. [[kgh]] (talk) 16:02, 10 September 2014 (UTC)Reply
Well, there is indeed something in the water. When I e.g. switch to another skin the title reappears for all skins, even for Vector which was working ok before. You will have to touch the page to hide the title again which makes this extension basically unusable. Have not tested any cache related implications but this is bad enough. [[kgh]] (talk) 16:38, 11 September 2014 (UTC)Reply
Thanks for the info. I'll find another way for now. Mitchelln (talk) 10:24, 23 September 2014 (UTC)Reply
Was happy to find this extension, but sad to see that it was not functional. As kgh discovered it appears to work at first but not when a page is revisited. When it fails, it appears that the killTitle() method parameter $text contains the page's footer text rather than the content, hence the style override never happens. If the method is triggered, one would expect the associated text to contain the magic word. Somewhere, somehow, page content is being cached, even though I have no caching enabled. The style override still works, so its just a matter of the conditional triggering properly. Tested this with MW 1.23.5, Apache 2.2.15, PHP 5.3.3, and MySQL 5.1.73 on CentOS 6.6. If I have some time, I'll try to dig a bit deeper. MrFrelling (talk) 20:17, 14 December 2014 (UTC)Reply
Hi.
I've just tried this again after a git pull and it now works! Somebody has obviously fixed it. Thank you :) Mitchelln (talk) 13:27, 15 December 2014 (UTC)Reply
Well that's interesting since there were no changes except for code styling in the meantime. [[kgh]] (talk) 14:45, 15 December 2014 (UTC)Reply
Actually, it still doesn't work properly. Weird behaviour in fact as you discovered.
If you edit and save the page, the title does not show, but if you navigate away and then back the title shows again. If you then click Refresh the title disappears again. Navigate away and then back the title shows again.
I have no caching enabled.
I'll go back to using per page CSS to show/hide.
Thanks. 87.249.73.195 13:12, 22 December 2014 (UTC)Reply

Titles not hiding properly

[edit]

Turns that that the "culprit" causing titles not to be hidden all the time given the __NOTITLE__ magic word, is the parser cache. Setting $wgEnableParserCache = false; in LocalSettings.php make this extension work as intended. Obviously, this is not a permanent fix for very busy sites that benefit from parser caching. Wonder if there is a way for the parser cache to cache dynamic style changes? MrFrelling (talk) 20:38, 14 December 2014 (UTC)Reply

Another hack is to replace the inline style insert in NoTitle.body.php with
$text = "<style>.firstHeading, .subtitle, #siteSub, #contentSub, .pagetitle { display: none; }</style>" . $text;
which works with parser caching enabled. Unfortunately, this does create "bad" HTML though FireFox and Chrome handle it. The style should be in the head section, unless it is scoped. MrFrelling (talk) 22:00, 14 December 2014 (UTC)Reply
Great, thank you for investigating into this and it is interesting to read about it. It will indeed be great to have this extension working again. Just let me know if I should somehow move the code into the extension's repo. Cannot merge it, but finding one who does should be possible. [[kgh]] (talk) 23:56, 14 December 2014 (UTC)Reply

Short URL's not friendly to this extension

[edit]

I am running Mediawiki 1.24.1 on a shared hosting Apache environment with Vector Skin enabled. "No Title" works beautifully with native url, but when you activate short URL's per Manual:Short URL/Apachethen "No Title" seems to not like it. This may also be causing your issues with this extension not working properly, or I should say, the extension works as intended, but when you change the URL to short URL's, the extension does not play well with that. Functions properly with http://your_domain/mediawiki/index.php?title=Main_Page Functions poorly with http://your_domain/wiki/Main_Page John Morris (talk) 14:14, 29 March 2015 (UTC)Reply

Alternative?

[edit]

Hmm, perhaps the HideTitle extension provides a way out. [[kgh]] (talk) 21:31, 10 September 2015 (UTC)Reply

That one requires the whole BlueSpice framework. If you run usual MediaWiki, this does not seem to be a way out. :( 194.160.2.21 (talk) 03:40, 25 September 2017 (UTC)Reply
Fortunatelly, this works in 1.29:
$wgRestrictDisplayTitle = false; (in LocalSettings)
and then use {{DISPLAYTITLE:new title}} on any page 194.160.2.21 (talk) 03:57, 25 September 2017 (UTC)Reply

How to rename "main_page" and make default customize tab.

[edit]

How to rename "main_page" and default customize tab name. 182.66.141.56 (talk) 19:11, 5 October 2017 (UTC)Reply

extension util

[edit]
esta extensión me fue muy útil porque como instale mediawiki 1.32 y al ver la página principal tenia __NOTITLE__ y cuando instale esta extensión funciono, el titulo no volvio a aparecer por eso espero que le den mantenimiento porque cuando lánzen mediawiki 1.32 esta extensión sera utíl 189.217.121.126 (talk) 20:35, 27 December 2018 (UTC)Reply

ParserOutput::getProperty deprecated in 1.38

[edit]

From the debug log:

  • [error] [ZTl95kXoJAIplA@5iIZu3wAAAJc] /wiki/Main_Page PHP Deprecated: Use of ParserOutput::getProperty was deprecated in MediaWiki 1.38. [Called from NoTitle::onOutputPageParserOutput]

Is there an update for 1.39.x? TimRiker (talk) 20:45, 25 October 2023 (UTC)Reply

in extensions/NoTitle/includes/NoTitle.php replace getProperty with getPageProperty TimRiker (talk) 18:56, 30 October 2023 (UTC)Reply

Extension obsolete after MW 1.38+

[edit]

MediaWiki 1.38+

[edit]

The displayed title of the main page can be changed using the MediaWiki messages MediaWiki:mainpage-title and MediaWiki:mainpage-title-loggedin.

Manual:FAQ#How do I hide the main page title.3F Alex1859 (talk) 22:52, 16 February 2024 (UTC)Reply

This extension is not specific to the main page * Pppery * it has begun 00:26, 17 February 2024 (UTC)Reply

Weird behavior

[edit]

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I used the magic word [https://dcwwiki.org/index.php?title=Main_Page&diff=prev&oldid=415 here] and it has hidden the PAGEBANNER. Why? Aafi (DCW) (talk) 15:30, 19 February 2024 (UTC)Reply

@TheAafi (DCW): You might need to add $wgWPBDisplaySubtitleAfterBannerSkins = ['wmau'];. See [[Extension:WikidataPageBanner#Parameters_to_the_Template:PAGEBANNER_function]] for more. Sam Wilson 06:52, 20 February 2024 (UTC)Reply
This helps. Thank you @Samwilson. I was able to achieve a lot with this edit. However, the appearance of "Main page title" just below the pagebanner is worrying. How do I get rid of it? Best regards, Aafi (DCW) (talk) 09:49, 20 February 2024 (UTC)Reply
@TheAafi (DCW): I think the way we've done that on the WMAU site is via CSS, in your case it'd be something like this in MediaWiki:WMAU.css:
.page-Main_Page .mw-displaytitle-subtitle {
	display: none;
}
Sam Wilson 09:53, 20 February 2024 (UTC)Reply
Thanks. I achieved this by making some edits and removing DisplayTitle Exension from the site. Aafi (DCW) (talk) 10:38, 20 February 2024 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.