How does one change the page title template used for main page?
I saw that the latest version of mediawiki release notes mentioned a property called 'Mediawiki:Pagetitle-view-mainpage', however editing that alone doesn't seem to do the trick.
I'd prefer not to hack the template class/files if possible.
thanks,
-P-
On Tue, Dec 9, 2008 at 12:02 AM, Peter Adams peter@oncefuture.com wrote:
How does one change the page title template used for main page?
I saw that the latest version of mediawiki release notes mentioned a property called 'Mediawiki:Pagetitle-view-mainpage', however editing that alone doesn't seem to do the trick.
I'd prefer not to hack the template class/files if possible.
What do you mean by "template"? The contents of the <title> element of the main page can be overridden with MediaWiki:Pagetitle-view-mainpage - that's all there is to it. See http://en.wikipedia.org/wiki/MediaWiki:Pagetitle-view-mainpage for an example.
-- Remember the dot http://en.wikipedia.org/wiki/User:Remember_the_dot
Thanks. That is what i thought. however editing that page under my MediaWiki install doesn't seem to make the change show up. I'm running 1.13.1 .
Also, MediaWiki:Pagetitle-view-mainpagedoesn't seem to be listed under: http://recyclepedia.org/index.php?title=Special:AllMessages . is that correct?
Does getting this to work require something special also being added to localsettings?
-P-
On Dec 8, 2008, at 11:46 PM, Remember the dot wrote:
On Tue, Dec 9, 2008 at 12:02 AM, Peter Adams peter@oncefuture.com wrote:
How does one change the page title template used for main page?
I saw that the latest version of mediawiki release notes mentioned a property called 'Mediawiki:Pagetitle-view-mainpage', however editing that alone doesn't seem to do the trick.
I'd prefer not to hack the template class/files if possible.
What do you mean by "template"? The contents of the <title> element of the main page can be overridden with MediaWiki:Pagetitle-view-mainpage
- that's all there is to it. See
http://en.wikipedia.org/wiki/MediaWiki:Pagetitle-view-mainpage for an example.
-- Remember the dot http://en.wikipedia.org/wiki/User:Remember_the_dot
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
You might need to set $wgUseDatabaseMessages to true for that to take effect: http://www.mediawiki.org/wiki/Manual:$wgUseDatabaseMessages
Peter Adams wrote:
Thanks. That is what i thought. however editing that page under my MediaWiki install doesn't seem to make the change show up. I'm running 1.13.1 .
Also, MediaWiki:Pagetitle-view-mainpagedoesn't seem to be listed under: http://recyclepedia.org/index.php?title=Special:AllMessages . is that correct?
Does getting this to work require something special also being added to localsettings?
-P-
On Dec 8, 2008, at 11:46 PM, Remember the dot wrote:
On Tue, Dec 9, 2008 at 12:02 AM, Peter Adams peter@oncefuture.com wrote:
How does one change the page title template used for main page?
I saw that the latest version of mediawiki release notes mentioned a property called 'Mediawiki:Pagetitle-view-mainpage', however editing that alone doesn't seem to do the trick.
I'd prefer not to hack the template class/files if possible.
What do you mean by "template"? The contents of the <title> element of the main page can be overridden with MediaWiki:Pagetitle-view-mainpage
- that's all there is to it. See
http://en.wikipedia.org/wiki/MediaWiki:Pagetitle-view-mainpage for an example.
-- Remember the dot http://en.wikipedia.org/wiki/User:Remember_the_dot
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Really? Happy to write patch if thats the case as I'd rather not take the performance hit to have a db hit per message. Does wikipedia do this that way?
-P-
On Dec 9, 2008, at 2:10 PM, Aran wrote:
You might need to set $wgUseDatabaseMessages to true for that to take effect: http://www.mediawiki.org/wiki/Manual:$wgUseDatabaseMessages
Peter Adams wrote:
Thanks. That is what i thought. however editing that page under my MediaWiki install doesn't seem to make the change show up. I'm running 1.13.1 .
Also, MediaWiki:Pagetitle-view-mainpagedoesn't seem to be listed under: http://recyclepedia.org/index.php?title=Special:AllMessages . is that correct?
Does getting this to work require something special also being added to localsettings?
-P-
On Dec 8, 2008, at 11:46 PM, Remember the dot wrote:
On Tue, Dec 9, 2008 at 12:02 AM, Peter Adams peter@oncefuture.com wrote:
How does one change the page title template used for main page?
I saw that the latest version of mediawiki release notes mentioned a property called 'Mediawiki:Pagetitle-view-mainpage', however editing that alone doesn't seem to do the trick.
I'd prefer not to hack the template class/files if possible.
What do you mean by "template"? The contents of the <title> element of the main page can be overridden with MediaWiki:Pagetitle-view- mainpage
- that's all there is to it. See
http://en.wikipedia.org/wiki/MediaWiki:Pagetitle-view-mainpage for an example.
-- Remember the dot http://en.wikipedia.org/wiki/User:Remember_the_dot
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Peter Adams wrote:
Really? Happy to write patch if thats the case as I'd rather not take the performance hit to have a db hit per message. Does wikipedia do this that way?
-P-
If you want any of the MediaWiki:* message changes to work, you MUST have $wgUseDatabaseMessages to true.
It's not a db hit *per message*, but one (all messages are fetch at loading).
Wikipedia does it this way, but it isn't really hitting the db, as the contents are cached at memcached.
If you don't want to change values at the MediaWiki namespace, you can modify them by editing the proper language file.
On Wed, Dec 10, 2008 at 4:30 PM, Peter Adams peter@oncefuture.com wrote:
Really? Happy to write patch if thats the case as I'd rather not take the performance hit to have a db hit per message. Does wikipedia do this that way?
$wgUseDatabaseMessages is true by default, so if you didn't explicitly disable it, it should already be in effect. If performance is a concern, you're strongly advised to use memcached or some other cache (APC, XCache, etc. if you only have one app server). For this and other reasons. That will, of course, avoid the DB requests.
if it's true by default then there is still a missing step...as this is not working for me.
I just tried adding a 'wgUseDatabaseMessages = true;' to my LocalSettings as well and still see no change.
I can change other messages listed at Special:AllMessages no problem. However 'Pagetitle-view-mainpage' is not listed as a property to change on that page.
Perhaps 'Pagetitle-view-mainpage' needs to be added to a messages array somewhere first before it can be changed ? it doesn't seem to be there out of the box.
-P-
On Dec 10, 2008, at 2:54 PM, Aryeh Gregor wrote:
On Wed, Dec 10, 2008 at 4:30 PM, Peter Adams peter@oncefuture.com wrote:
Really? Happy to write patch if thats the case as I'd rather not take the performance hit to have a db hit per message. Does wikipedia do this that way?
$wgUseDatabaseMessages is true by default, so if you didn't explicitly disable it, it should already be in effect. If performance is a concern, you're strongly advised to use memcached or some other cache (APC, XCache, etc. if you only have one app server). For this and other reasons. That will, of course, avoid the DB requests.
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
On Wed, Dec 10, 2008 at 8:30 PM, Peter Adams peter@oncefuture.com wrote:
if it's true by default then there is still a missing step...as this is not working for me.
I just tried adding a 'wgUseDatabaseMessages = true;' to my LocalSettings as well and still see no change.
I can change other messages listed at Special:AllMessages no problem. However 'Pagetitle-view-mainpage' is not listed as a property to change on that page.
Perhaps 'Pagetitle-view-mainpage' needs to be added to a messages array somewhere first before it can be changed ? it doesn't seem to be there out of the box.
pagetitle-view-mainpage only exists in 1.14, actually, now that I check -- r38730, in fact, to be precise. That's why it's in the release notes for 1.14 and not 1.13, which you said you're using. So that would explain the problem. If you need this feature, you'll have to update to someplace on trunk, or wait for the 1.14 release.
Yikes. Thanks Aryeh. That certainly explains things.
-P-
On Dec 10, 2008, at 6:07 PM, Aryeh Gregor wrote:
On Wed, Dec 10, 2008 at 8:30 PM, Peter Adams peter@oncefuture.com wrote:
if it's true by default then there is still a missing step...as this is not working for me.
I just tried adding a 'wgUseDatabaseMessages = true;' to my LocalSettings as well and still see no change.
I can change other messages listed at Special:AllMessages no problem. However 'Pagetitle-view-mainpage' is not listed as a property to change on that page.
Perhaps 'Pagetitle-view-mainpage' needs to be added to a messages array somewhere first before it can be changed ? it doesn't seem to be there out of the box.
pagetitle-view-mainpage only exists in 1.14, actually, now that I check -- r38730, in fact, to be precise. That's why it's in the release notes for 1.14 and not 1.13, which you said you're using. So that would explain the problem. If you need this feature, you'll have to update to someplace on trunk, or wait for the 1.14 release.
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org