A Joomla core component Help button has code like this:
A custom component might have code like this:
So if you want to replace selected core Help pages with your own, one way to do it would be to use a custom plugin that responds to onAfterRender and checks the Help url. If it is in your list then substitute your url.
Code:
<button class="button-help btn btn-info js-toolbar-help-btn" data-url="https://help.joomla.org/proxy?keyref=Help44:Articles&lang=en" data-title="Help" data-width="700" data-height="500" data-scroll="1" type="button" title="Opens in a new window"> <span class="icon-question" aria-hidden="true"></span> Help</button>
Code:
<button class="button-help btn btn-info js-toolbar-help-btn" data-url="components/com_countrybase/help/en-GB/countrybase.html" data-title="Help" data-width="700" data-height="500" data-scroll="1" type="button" title="Opens in a new window"> <span class="icon-question" aria-hidden="true"></span> Help</button>
Statistics: Posted by ceford — Sat Feb 17, 2024 12:29 pm