How Do I take text from Textarea in Extension

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

How Do I take text from Textarea in Extension

Postby vitiucha » April 3rd, 2010, 2:53 pm

Hi, I'm creating new extension.

In the page I create input form to new wiki page (Wiki page name) and second form (textarea) and then submit button.

The I press button, MediaWiki create new page with my typed name.
The question is, how add my textarea text to new MW page editor? Maybe somebody know any function, o have egzample.

Thanks a lot.
User avatar
vitiucha
Rank 0
Rank 0
 
Posts: 2
Joined: April 3rd, 2010, 2:50 pm

Re: How Do I take text from Textarea in Extension

Postby Paul » April 4th, 2010, 8:31 pm

I'm not quite sure what you want to achieve...any detail?
User avatar
Paul
Development Team Leader
Development Team Leader
 
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: How Do I take text from Textarea in Extension

Postby vitiucha » April 5th, 2010, 7:45 am

http://vitiucha.puslapiai.lt/VGTU/index ... s_puslapis
Here my extension.

"Enter the title of the page you wish to create:" new page name.
"Additional information" - will be some text.
when i'll press "Create Lecture" button, MediaWiki create page with my new name and in wiki editor must be my additional information (text from textarea) . But how i can do it? something do with post or get?

Cause i looked a lot extensions, but didn't find any ideas.
User avatar
vitiucha
Rank 0
Rank 0
 
Posts: 2
Joined: April 3rd, 2010, 2:50 pm


Return to MediaWiki Extensions 'How Do I' Questions

Who is online

Users browsing this forum: No registered users and 1 guest

cron