[Mediawiki-l] Page Table

Rob Church robchur at gmail.com
Fri Feb 17 16:18:20 UTC 2006


No, a lot of the stuff in that file you can ignore. For instance, you
aren't going to need to disable $wgOut or fake your $wgUser values.
Concentrate on the bits that instantiate the article class, and the
revision classes, and use the insertOn and updateTo methods.


Rob Church

On 17/02/06, Amruta Lonkar <amrutasl at gmail.com> wrote:
> I guess its the initialiseMessagesReal function right in the file you
> mentioned? I have one question though. Is it necessary to do all the
> diabling functions that have been done in it for creating the pages that i
> want to create. There is a lot of code in that function and i cant exactly
> figure out how to use it to code for a new namespace, page and default text.
>
> -Amruta
>
>
> On 2/17/06, Rob Church <robchur at gmail.com> wrote:
> >
> > For a good set of pointers on programmatically creating pages, take a
> > look at the InitialiseMessages.inc file in the maintenance dir. It's
> > got a chunk of code which demonstrates how to create a new page and
> > insert it into the database, with revision and text information.
> >
> >
> > Rob Church
> >
> > On 17/02/06, Amruta Lonkar <amrutasl at gmail.com> wrote:
> > > Hi,
> > > I want to create a page and have some default text for it on the
> > > 'ArticleSaveComplete' event. For this i ma inserting information into
> > the
> > > page, revision and text table. I am enetring the default text into the
> > text
> > > table. I do  not know how to get the length of the page (that is the
> > default
> > > text) to inset it into the page table. Will this actually create a page
> > for
> > > it or do i need ot call Article class for the same?
> > >
> > > Thanks,
> > > Amruta
> > > _______________________________________________
> > > MediaWiki-l mailing list
> > > MediaWiki-l at Wikimedia.org
> > > http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
> > >
> > _______________________________________________
> > MediaWiki-l mailing list
> > MediaWiki-l at Wikimedia.org
> > http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
> >
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at Wikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>



More information about the MediaWiki-l mailing list