$OUTPUT->main_content()

$OUTPUT->main_content()

by Helson C -
Number of replies: 2

Hello,

There is a way to remove this code without show a error message or hide with css ?

My intention is replace what will show or then remove this line from code.


I would like to know more about this line of code.


Thanks in advance.

Average of ratings: -
In reply to Helson C

Re: $OUTPUT->main_content()

by Richard Oelmann -
Picture of Core developers Picture of Plugin developers Picture of Testers

Look at the output it creates and use a display:none on the enclosing div around what you want hidden (maybe the div that is already in the layout file surrounding that line.

Moodle will give an error message if its not there at all.

The output itself will vary depending on what page you are on - eg front page, login, course etc.

In reply to Richard Oelmann

Re: $OUTPUT->main_content()

by Helson C -

Seems i'll have to live with it...

Thanks Richard.