Menu - Options
and put to Yes
the option Show Page Heading
and write a global Page Heading
in the option below. Save.Page Display
the option Show Page Heading
is set to Use Global (Yes)
or simply Yes
, also check you have the option Page Heading
empty, in this way, the global value is taken. Save.In the frontend, the global Page Heading
values it is shown.
In the frontend, the global Page Heading
values it is not shown. Instead, the title of the menu item is taken, as a page heading.
Last staging
Labels |
Added:
?
|
Category | ⇒ | com_menus |
Labels |
Added:
J3 Issue
|
@DavidBoggitt I wrote that wrong when I did in the global option.
Ah, ok :)
In the frontend, the global Page Heading values it is not shown. Instead, the title of the menu item is taken, as a page heading.
That's the expected behavior. But, you are right! The settings are irritating because very very seldom a situation occurs where the global Page Heading is shown. It's something like a fallback I think.
I think one would need an additional option/parameter "Show always the global Page Heading" to stay B\C. But if the global Page Heading is not filled what then? Show the sitename or the menu title or ....?
Maybe just extending the description for the global "Page Heading"? At the moment it's described as an "alternative".
Status | New | ⇒ | Discussion |
That's the expected behavior
I think not @ReLater . If I define a global page heading, that is the one need shown if i leave the page heading of the menu item empty, and no the title of the menu item.
Yes, I know, are minimal cases of use of this option, but we have there, and no work as need work. I'm looking for where this value is overwritten, but still a lot to learning about J . Where do you suggest I look for find this issue?
Ok, maybe it's not the expected behavior but it's the way Joomla is working for a long time now (if we are talking about articles). That's why I've added the B\C remark.
But maybe you're right.
Where do you suggest I look for find this issue?
Normally the last decision concerning page_heading
is made in view.html.php
. E.g. for com_content
:
https://github.com/joomla/joomla-cms/blob/3.8.8/components/com_content/views/article/view.html.php#L229-L238
Search also for merge(...)
-calls in the article model and view.html.php
to find the lines where params are merged (= "overwritten by others")!
During a quick&dirty debug I couldn't find a place where the global page_heading
occurs in any params
.
From my perspective the error is that there is the option to set PAGE HEADING in the global options. That option is only intended to be an override to the default text (if show page heading is on) so you would only ever set it on a menu item and not globally
By default, every menu item, come with Use Global
, so, in terms of saving time, this option can help you. But the reality is this option almost does not have many cases of uses, so I agree, it is unnecessary. But, we canĀ“t remove, because of B/C right?
If the field "Page Heading" is never used (as opposed to "Show Page Heading") then it probably can be removed. BUT just in case someone was re-purposing that field for something else it would be classed as a B/C break so could only be removed in J4
Anyway, is not work now. And i not test on J4 yet, but sure there have same issue
As I said - its not so much it doesn't work as it shouldnt have been there in the first place. Its a copy&paste bug that it is offered as an option in the xml for the global
Global option is used when accessing components directly (without menu item). The issue is that Use Global
placeholder was added to menu item form by mistake.
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-07-13 08:51:26 |
Closed_By | ⇒ | franz-wohlkoenig |
Closed_By | franz-wohlkoenig | ⇒ | joomla-cms-bot |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/20846
There's also a typo with GLOBLA HEADING