How to create a extra button and make it do the real work

Use this forum to ask questions about how to do things with my MediaWiki Extensions.

How to create a extra button and make it do the real work

Postby tommy_725 » September 19th, 2010, 8:32 pm

Hello Everyone,
I m new to MW. i m trying to create a extra button nearby buttons: save, preview, show changes by making a extension.
i have used the hooks/EditPageBeforeButtons to create a extra button. But problem is that i dont know how to make this button work. because when I click this button, it does the same work like default save wikitext. I dont know how to call other functions if clicked this button. e.g. post data to a url, running a javascript or any other functions except default saving.
Any examples and tips would be very thankful!

greeting
tomtom
User avatar
tommy_725
Rank 0
Rank 0
 
Posts: 1
Joined: September 19th, 2010, 8:29 pm

Return to MediaWiki Extensions 'How Do I' Questions

Who is online

Users browsing this forum: No registered users and 1 guest

cron