Skip to content

Commit

Permalink
Add inlinehelp feature for component com_config (see joomla#35610)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrezdev authored Feb 27, 2022
1 parent 57b7e68 commit 4317acb
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,14 @@ protected function addToolbar()
ToolbarHelper::cancel('component.cancel', 'JTOOLBAR_CLOSE');
ToolbarHelper::divider();

$inlinehelp = (string) $this->form->getXml()->config->inlinehelp['button'] == 'show' ?: false;
$targetClass = (string) $this->form->getXml()->config->inlinehelp['targetclass'] ?: 'hide-aware-inline-help';

if ($inlinehelp)
{
ToolbarHelper::inlinehelp($targetClass);
}

$helpUrl = $this->form->getData()->get('helpURL');
$helpKey = (string) $this->form->getXml()->config->help['key'];

Expand Down

0 comments on commit 4317acb

Please sign in to comment.