Display page name option is missing

Display page name option is missing

Nirvikar Chandan Ram -
回帖数:2

Hi there,

I recently upgraded my Moodle site to 2.6+ 20131224. 

I have noticed that I am not able to hide the page name from the Page module administration settings. The display page name checkbox is not present.

Also, in the Administration>Site administration>Plugins>Activity modules>Page  settings page, the Display page name page | printheading is missing as well.

Can someone please help?

Thanks 

Nirvikar

回复Nirvikar Chandan Ram

Re: Display page name option is missing

Mary Cooch -
Documentation writers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Testers的头像 Translators的头像

Just noting the tracker entry for this /MDL-41566 I did some research and it appears that for accessibility reasons it is no longer possible not to display the page title.

回复Mary Cooch

Re: Display page name option is missing

Jason Ferguson -

Is there any way to remove this auto output page name in a h2 functionality or modify it without completely creating a new type of activity/resource?  (outside targeting the first occurrence of the h2 class within #region-main where the body class has pagelayout-incourse or path-mod-page.

The reasoning behind "forcing this" for accessibility options doesn't make much sense to me. Since this is the primary heading on the page, shouldn't this technically be a H1 anyway or am I missing something?  Why are we forcing accessibility on the page resource,  the purpose of that was to give us more of a full html presentational control instead of being stuck inside some of the boxes the other lesson resources provide.  IE:   it should act as standard HTML page with no constraints.   

As far as I can find, this output is currently generated by /mod/page/view.php  @ line 84 (moodle 2.6), which doesn't have a renderer. 

I realize I can extend the heading function from /lib/outputrenderers, but that applies site wide anywhere heading() is called.  I'd prefer not to arbitrarily wrap an extra div around the heading as this can cause some undesired styling effects on views that gets used.

So I guess my question is,   if we do not want the page name (add resource/activity -> page ) to automatically output in a H2; is the present solution to either modify the core file, use a css hack, or create a custom lesson resource and just drop it into /mod?