Add a button to singlepage template in database activity.

Add a button to singlepage template in database activity.

by Ranil Peiris -
Number of replies: 1

Hi

I am customising database module. I want to add a button to singlepage template. I want to go to a new page that I created when the user click that button.
Please can explain how to that.
Thank you very much.
Ranil

Average of ratings: -
In reply to Ranil Peiris

Re: Add a button to singlepage template in database activity.

by Ranil Peiris -

I will explain the case with more information.

I am trying to customize Moodle Database to do 

1) Student should submit Ideas to a database module as an entry. 

2) If a teacher interested of an idea, he should be able to select it. 

    Teacher can go to single view to get more details

     if teacher like to work as an indivdual project, then, teacher should be able create a new course when click a button.

      I have create a moodle page to accept as agruments and call to create_course() function and it works fine (when i test directly calling to it) . 

My problem is to add a button to "single view" to go that page passing parameters. 


I tried to use a button but I cannot go and it redirect to the "database" view page