Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-9339

Add a target property to the URL links in the navigation menu

    Details

    • Type: Patch
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.0.7
    • Fix Version/s: 4.1.0
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      When people implement the hook_civicrm_navigationMenu hook they can add entries to the navigation menu at the top. These entries can redirect to external websites, but then the redirection happens in the main CiviCRM window. This patch allows the addition of a 'target' property to the menu entries, so the target URL can open in a new window or tab.

      Example: cf http://wiki.civicrm.org/confluence/display/CRMDOC40/CiviCRM+hook+specification#CiviCRMhookspecification-hookcivicrmnavigationMenu
      Add a 'target' attribute after the 'url' in the params array:
      [...]
      'url' => 'http://www.testlink.com',
      'target' => '_blank',
      'permission' => 'access CiviContribute',
      [...]

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              nganivet Nicolas Ganivet
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: