I have written a page in extensions, that will enable a user to add reference information. However now i want to call this page in such a way that when a user is writing a new article at that time he can click on either a button like the ones located above the existing text editor which will call that page. I am trying to do this on my local wiki. Does anybody know how this can be done?. Does anybody know what might be any other way to do it
Thanks, -- Amruta
Amruta Lonkar wrote:
I have written a page in extensions, that will enable a user to add reference information. However now i want to call this page in such a way that when a user is writing a new article at that time he can click on either a button like the ones located above the existing text editor which will call that page. I am trying to do this on my local wiki. Does anybody know how this can be done?. Does anybody know what might be any other way to do it
Hello,
Three possibilities:
1/ The text editor buttons are in a <div id='toolbar'> so you can probably make a javascript that add new buttons.
-> might be a bit of troubles if you dont know javascript (like me)
2/ We could also add a hook so extensions can add new buttons easily (read without javascript hacking).
-> need a developer to add hooks and make them available in next 1.5. But it is in Release Candidate status and I dont think we add any new features in that branch. Might be for 1.6 (march-april 2006?).
3/ You can hack the source code: the function that build the editing toolbar is in ./include/EditPage.php , method getEditToolbar() .
-> it is the fastest way for you, but you will have to keep a patch of your changes for futures upgrades.
Maybe Avar can add the hooks, I am sure he likes them :p
cheers,
I will try the last possibility i guess. That seems to be the easiest to me right now. And also am doing these changes on a local wiki so i guess it should be fine.
Thanks a lot!. Will try it out.
Amruta
Quoting Ashar Voultoiz hashar@altern.org:
Amruta Lonkar wrote:
I have written a page in extensions, that will enable a user to add
reference
information. However now i want to call this page in such a way that when a user is writing a new article at that time he can click on either a button like the ones located above the existing text editor which will call that page. I am trying to do this on my local wiki. Does anybody know how this
can
be done?. Does anybody know what might be any other way to do it
Hello,
Three possibilities:
1/ The text editor buttons are in a <div id='toolbar'> so you can probably make a javascript that add new buttons.
-> might be a bit of troubles if you dont know javascript (like me)
2/ We could also add a hook so extensions can add new buttons easily (read without javascript hacking).
-> need a developer to add hooks and make them available in next 1.5. But it is in Release Candidate status and I dont think we add any new features in that branch. Might be for 1.6 (march-april 2006?).
3/ You can hack the source code: the function that build the editing toolbar is in ./include/EditPage.php , method getEditToolbar() .
-> it is the fastest way for you, but you will have to keep a patch of your changes for futures upgrades.
Maybe Avar can add the hooks, I am sure he likes them :p
cheers,
-- Ashar Voultoiz - WP++++ http://en.wikipedia.org/wiki/User:Hashar http://www.livejournal.com/community/wikitech/ IM: hashar@jabber.org ICQ: 15325080
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
-- Amruta
On 10/5/05, Ashar Voultoiz hashar@altern.org wrote:
Maybe Avar can add the hooks, I am sure he likes them :p
Yummie hooks...
I am still a little confused. I went through the getEditToolbar() method. From what i understand the buttons in this tool bar will add the appropriate tags when inserting/writing an article. What i was hoping to do was, when a user clicks on the button associated with references, it will pull up the page i have created in extensions. This is just a form where the user can enter relevant information related to a reference.
Ashar could you tell me how i should go about doing this. I am just a beginner so am stuck on these little things.
thanks, Amruta
Quoting Ævar Arnfjörð Bjarmason avarab@gmail.com:
On 10/5/05, Ashar Voultoiz hashar@altern.org wrote:
Maybe Avar can add the hooks, I am sure he likes them :p
Yummie hooks... _______________________________________________ Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
-- Amruta
wikitech-l@lists.wikimedia.org