Sorting out TITLE / PAGEHEADING / SUBSECTIONHEADING for pages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Robert Lyon |
Bug Description
Following on from Bug #1529731 I notice that there is a lot of duplication of code / non-consistent use of the TITLE / PAGEHEADING / SUBSECTIONHEADING for pages.
There are many places where the TITLE - set as a defined value for a php file is exactly the same as PAGEHEADING which is passed into $smarty after the fact. It would be easier to allow the PAGEHEADING to be set as TITLE if their is no overriding PAGEHEADING set.
I've also feel the SUBSECTIONHEADING should be set as a constant rather than a $subsectionheading variable to keep it consistent with the other ones.
For the setting of the PAGEHEADING and SUBSECTIONHEADING constants the order they appear in the <h1> tag was not consistent. Normally the values are set as:
SUBSECTIONHEADING = the particular instance title
PAGEHEADING = the umbrella title
For example, for a group's pages it is:
SUBSECTIONHEADING = Pages
PAGEHEADING = Group 1 (the name of the group)
Which displays as:
<h1>Pages | Group 1</h1>
So I'll make a few patches to clean this up
Changed in mahara: | |
status: | New → In Progress |
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
Patch for "master" branch: https:/ /reviews. mahara. org/5978