Hi,
I am trying to find whihc function is called when user hits the save button on edit page and in whihc file the button click for save is checked.
Any help appreciated.
Thanks, -- Amruta
Amruta Lonkar wrote:
Hi,
I am trying to find whihc function is called when user hits the save button on edit page and in whihc file the button click for save is checked.
Any help appreciated.
Thanks,
Amruta
Article::save(), in Article.php. Submitting the form generates a POST request to index.php with action=save in the query string. This action is dispatched to the Article object.
-- Tim Starling
I have a few doubts about the flow of code once the user clicks save/preview/show diff buttons.
I have made changes to our locally installed wiki 1)Added a reference button in the edit toolbar which when clicked pulls up a pop up where the user can enter reference information. Once user cliks submit in this form the information gets entered to the reference table in wikidb.
What i need to understand is, how should i proceed when user clicks eithr the save/preview button. I have a slight idea that only after user clicks save page, information should get entered to the referencelinks table which is a replica of the imagelinks table.
I cannot figure out at what point and where in the code i can add information to the referencelinks table. Or should this be done when user clicks the preview page button?
I appreciate your time and help.
Amruta
Quoting Tim Starling t.starling@physics.unimelb.edu.au:
Amruta Lonkar wrote:
Hi,
I am trying to find whihc function is called when user hits the save button
on
edit page and in whihc file the button click for save is checked.
Any help appreciated.
Thanks,
Amruta
Article::save(), in Article.php. Submitting the form generates a POST request to index.php with action=save in the query string. This action is dispatched to the Article object.
-- Tim Starling
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
-- Amruta
I have a few doubts about the flow of code once the user clicks save/preview/show diff buttons. I am sorry for posting this again but am really stuck at this :(
I have made changes to our locally installed wiki 1)Added a reference button in the edit toolbar which when clicked pulls up a pop up where the user can enter reference information. Once user cliks submit in this form the information gets entered to the reference table in wikidb.
What i need to understand is, how should i proceed when user clicks eithr the save/preview button. I have a slight idea that only after user clicks save page, information should get entered to the referencelinks table which is a replica of the imagelinks table.
Also I tried looking into the Article.php code as said by Tim, but i still cant figure out how i should proceed.
I cannot figure out at what point and where in the code i can add information to the referencelinks table. Or should this be done when user clicks the preview page button?
I would really appreciate any help.
Amruta
Quoting Tim Starling t.starling@physics.unimelb.edu.au:
Amruta Lonkar wrote:
Hi,
I am trying to find whihc function is called when user hits the save
button
on
edit page and in whihc file the button click for save is checked.
Any help appreciated.
Thanks,
Amruta
Article::save(), in Article.php. Submitting the form generates a POST request to index.php with action=save in the query string. This action is dispatched to the Article object.
-- Tim Starling
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
-- Amruta _______________________________________________ Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
-- Amruta
wikitech-l@lists.wikimedia.org