New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.0] Don't show help button if no help URL or reference is defined #35662
Conversation
I have tested this item ✅ successfully on ab6334e This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35662. |
Some tries with: com_weblinks - History: A) Modules > Web Links > Help B) Components > Web Links > Help > Categories > Options = OK C) with and without Patch: After above, System shows Update available for Weblinks Extension Package: to: 4.0.0 C) Fields and Fieldgroups are now added. Patch ON again: See A) above: After Update to 4.0.0 Result changed to: Maybe some changes between Version 3.9.0 and 4.0.0 System version: 4.0.4-dev This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35662. |
@ChristineWk I'm a bit confused from your test results. As this PR here is only about the help button, some of your errors look unrelated to this PR and instead are bugs in weblinks itself? |
sorry about, I'am also confused :-) Patch = ON: Web Links > Categories > Options (Help button is removed) = successful. Web Links > Links > Help (Help button visible) > Help: 404 - RuntimeException Web Links > Fields (= new with update to 4.0.0) > (Help button visible) > Help Function = OK. Web Links > Field Groups (= new with update to 4.0.0) > (Help button visible) > Help Function = OK. Site Modules: Web Links (not activated) > Web Links > Help button > 404 – RuntimeException This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35662. |
OK, it was my mistake. Before that, version 3.9.0 was offered and installed via web installation. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35662. |
I'll try with Weblinks and see what's wrong there. I suspect some error on weblinks side, but need to be sure first :-) |
Reason is a bug in Weblinks: Same issue with the module: (Correct values taken from https://docs.joomla.org/Help310:Help_screens) |
PR done for the weblinks errors. |
How do we find the views that should have Help pages but don't? In the past users would report a bug. I found several missing Help pages myself and created them. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35662. |
See the testing instructions |
There is also an overview over the existing help pages here: https://docs.joomla.org/Help310:Help_screens |
I have tested this item ✅ successfully on ab6334e The point I was trying to make in my comment was not clear: had I not created a dozen or more new Help pages last summer you could now have had that many more HtmlView files to fix now. And I know about the list of Help pages because I updated the Joomla 4 version myself. What I was alluding to is that it would be better to create missing Help pages than hide the fact they are missing. Third party developers have the option to leave out the Help link or point it to another server. I do that for one of my components. And for another one I use local Help files. Anyway, if there are no missing core Joomla Help pages I am happy. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35662. |
Ah I see that you still missed the point @ceford This is nothing to do with missing core help pages Before this PR if your component used categories then there was automatically a help button present for the categories page even though there was no help page. As an extension developer you didnt have to do anything to create that button - it was automatic. There was also no way for you to remove the help button. This PR prevents these automatic help buttons being created unless they have been defined |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35662. |
Thx |
Currently, a help button is shown always in com_categories, com_config and com_modules (and maybe other places), regardless if the extension actually has a help page or not.
Summary of Changes
ref_key
for the help button$ref
or$override
is passed.Testing Instructions
Check with a 3rd party extension if the help button either works (one is specified) or doesn't appear (if none is specified) in:
Actual result BEFORE applying this Pull Request
Help button is always shown. If no help is specified, the help page will show a RuntimeException error
Expected result AFTER applying this Pull Request
Help button doesn't appear when no help is specified
No change to before if help is specified.
Documentation Changes Required
None