Alternative view.php?

Alternative view.php?

by Bent Nikolaisen -
Number of replies: 1
Is there a way to force a lesson to use a spesific version of the view.php-file?
Ex: The default would be for all lessons to use view.php, but a few lessons I would like to use an edited version of the file named view2.php. Is this possible?
Average of ratings: -
In reply to Bent Nikolaisen

Re: Alternative view.php?

by Chris Collman -
Picture of Documentation writers
Hi Brent,
Your question probably belongs in a developer forum because a view.php file is in many /mod folders. Perhaps another Lesson forum member has a better suggestion.

The short answer is "yes" because anything is possible. Your real question is "how do I" ?

I stay away from tweaking code. I suspect you will need to add some sort of switch/table/variable in the Lesson setting and then something in view so that when it is called it first looks to the setting to see if it should call view2. Way over my head.

Best Chris