I am hoping to experiment with resetting a few mis-targeted Help buttons for various Gramplets. This would help me submit more actionable enhancement requests.
But my experiments in changing a Help button target have been failing.
Unfortunately, the wiki documentation for how to set the URL for an add-on Gramplet Help button is practically non-existent. I tried adding the line as it said and then re-started Gramps. But the Help button still tries to go to the original webpage. (‘Tries’ because that subsection never existed… and it is the wrong page anyway.)
How does the help_url
line work in the .gpr.py
add-on registration? Is the line order important? And is there Translation support?
The Gramplet Help is often overlooked because the button is only visible when a gramplet is detached from the sidebar/bottombar/dashboard. (Just like the Configure options get overlooked because the icon are in an unexpected place relative to the Gramplet.)
For instance, I wanted to tweak the Collections Clipboard Gramplet add-on to point its Help button to the specific wiki page. (Unfortunately, the default Help points at the generic built-in Gramplets page (with an invalid subsection). This particular gramplet didn’t have a help_url
line at all.
There’s a 4 year old feature request to fallback the default to the generic add-on list subsection. And there’s a 6 year old GEPS that is partially addressed.
ClipboardGramplet.gpr.py
#------------------------------------------------------------------------
#
# Register the Gramplet
#
#------------------------------------------------------------------------
register(GRAMPLET,
id="Collections Clipboard Gramplet",
name=_("Collections Clipboard"),
description = _("Gramplet for grouping collections of items to aid in data entry."),
status = STABLE,
version = '1.0.41',
gramps_target_version = "5.1",
height=200,
gramplet = "ClipboardGramplet",
fname="ClipboardGramplet.py",
gramplet_title=_("Collections Clipboard"),
)
revise version Line 12
version = '1.0.42',
insert Line 14
help_url="Collections_Clipboard_Gramplet",
(Collections Clipboard Gramplet version 1.0.41; Gramps version 5.1.3; Operating System: Win10)