[ https://issues.apache.org/jira/browse/FELIX-3880?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13566665#comment-13566665 ]
Carsten Ziegeler commented on FELIX-3880: ----------------------------------------- Links can be generated server side, they can point to any server as they can be absolute. I don't like this mechanism, adding help links require to "override" a javascript file - which doesn't seem to be the correct solution; in addition it requires the whole overriding mechanism Now, with my proposal that at least manages the links server side, we can deliver them when the json for the config dialog is generated on the server side - or load them on demand or create a single file containing all (and more or less cache them). But this still can be sorted out. The first thing we should do is to define how to manage the links, which means the mechanism how to plugin such links. > [PATCH] placeholders for help links in the webconsole > ----------------------------------------------------- > > Key: FELIX-3880 > URL: https://issues.apache.org/jira/browse/FELIX-3880 > Project: Felix > Issue Type: Improvement > Components: Web Console > Affects Versions: webconsole-4.0.0 > Reporter: Bertrand Delacretaz > Priority: Minor > Fix For: webconsole-4.0.2 > > Attachments: FELIX-3880.patch, helplinks.jpg > > > The attached patch adds placeholders for help links to the webconsole, like > <span > class="configHelpLink" > data-config-param="ds.loglevel" > data-config-pid="org.apache.felix.scr.ScrService" > data-config-name="SCR Log Level" > data-config-description="Allows limiting the amount..." > > </span> > which can be enhanced with client-side javascript to build customized help > links. > The patch also adds a script reference at the end of the config page: > <script > type="text/javascript" > src="/system/console/overridable/scripts/confighelp.js"></script> > which by default points to an empty script provided by the FELIX-3879 > mechanism, overridable by providing a Servlet service that returns the > desired code. > I have created an example such servlet/script at > https://github.com/bdelacretaz/felix-confighelp-demo, to test this feature: > -Apply the FELIX-3879 patch and this patch and install the patched webconsole > -Install the felix-confighelp-demo bundle > -The /system/console/overridable/scripts/confighelp.js path must then return > the felix-confighelp-demo's confighelp.js script > -Open a config form in the console, help links should be present next to each > parameter, which point to google.com for the demo -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira