[Mediawiki-l] Re: blog extension

FxParlant f-x.p at laposte.net
Sat Mar 5 18:03:41 UTC 2005


Hi John

Rowan Collins is absolutely right,  the extension failed on my localhost 
because of corruption of the "recent change" table, but it perfectly 
worked on my website.

I'll try to build a real blog extension, capable of sorting pages by 
months, and / or by category, inside a namespace.

Should it be an extension or a special page ?

What can the url be:
- Ns:Blog?year=2005&month=02&category=Cinema
- Ns:Blog?start=01-02-2005&end=28-02-2005&Category=Books

Anyway, I first need to catch a little bit with mysql timestamp 
manipulation :-\

François

FxParlant wrote:
> Hi John,
> 
> I hadn't tried this yet.. but just for you I tried... ;-)
> 
> I remembered why I just droped the idea of using namespaces in mediawiki 
> (although I really used it a lot in Dokuwiki): I think that mediawiki 
> just creates a "what links here" (links) table for the main namespace.
> 
> I thought I could simply change the mysql query of my extension, but it 
> seems that it's the same with the "category links" table: only pages in 
> the main namespace are taken into account.
> 
> Therefore, I think you could change the sql query, and instead of 
> searching page with backlinks to the page, just query pages from your 
> blog namespace, and sort them by date... that is, create a proper blog 
> extension, instead of my complicated quote version :-)))
> 
> I really think it would be simpler of my version, because you wouldn't 
> have to take care of pages having links to themselves through fragment 
> incorporated, all this getting infinite loop.
> 
> Do you need a bit of help on this ?
> 
> François
> 
> John Yu wrote:
> 
>> François,
>>
>> Will your extension work for pages in namespaces other than the main 
>> one? I'm interested to try it out, but I keep our blog-oriented 
>> entries in custom namespace.
>>
>> Thanks.
>> -- 
>> John




More information about the MediaWiki-l mailing list