Commit acb3d074 authored by 's avatar

Added helpLink to HelpSys; lighter weight than the form approach

parent e4cc2814
......@@ -163,6 +163,19 @@ class HelpSys(Acquisition.Implicit, ObjectManager, Item, Persistent):
helpURL=HTMLFile('helpURL',globals())
def helpLink(self, product='OFSP', topic='ObjectManager_Contents.stx'):
# Generate an <a href...> tag linking to a help topic. This
# is a little lighter weight than the help button approach.
basepath=self.REQUEST['BASEPATH1']
help_url='%s/Control_Panel/Products/%s/Help/%s' % (
basepath,
product,
topic
)
help_url='%s?help_url=%s' % (self.absolute_url(), help_url)
html='<a href="" onClick="return window.parent.openHelpWindow(' \
'\'%s\');">Help!</a>' % (help_url)
return html
def tpValues(self):
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment