Skip to content

Commit

Permalink
[DOCS] Use correct condition for breadcrumb menu
Browse files Browse the repository at this point in the history
Prevents `RuntimeException: Unable to get an item of non-array`
  • Loading branch information
okmiim committed Feb 21, 2022
1 parent 96dbb23 commit fd9a11d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ To add the calendarize link to the breadcrumb use this user function

.. code-block:: typoscript
[request.getQueryParams()['tx_calendarize_calendar']['index'] > 0]
[traverse(request.getQueryParams(), 'tx_calendarize_calendar/index') > 0]
lib.myBreadcrumbMenu.999 = USER
lib.myBreadcrumbMenu.999.userFunc = HDNET\Calendarize\Service\BreadcrumbService->generate
lib.myBreadcrumbMenu.999.doNotLinkIt = 1 # (enable or disable the link => 0)
Expand Down

0 comments on commit fd9a11d

Please sign in to comment.