Skip to content

Commit

Permalink
[BUGFIX] Fix main links in backend modules
Browse files Browse the repository at this point in the history
For some reason f:link.action does not work on every instance (but for sure on some). To prevent any errors we changed the links to f:be.link as it is done in newer versions of LUX anyway.
  • Loading branch information
einpraegsam committed Jan 12, 2024
1 parent 41943f8 commit d2d55a3
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 16 deletions.
42 changes: 30 additions & 12 deletions Resources/Private/Partials/Analysis/ActionSwitcher.html
Original file line number Diff line number Diff line change
@@ -1,22 +1,40 @@
<f:link.action action="dashboard" controller="Analysis" class="btn{lux:backend.getClassNameOnAction(onAction:'dashboard',view:view)}">
<f:be.link
route="lux_LuxAnalysis"
parameters="{tx_lux_lux_luxanalysis:'{action:\'dashboard\',controller:\'Analysis\'}'}"
class="btn{lux:backend.getClassNameOnAction(onAction:'dashboard',view:view)}">
<f:translate key="LLL:EXT:lux/Resources/Private/Language/locallang_db.xlf:module.analysis.dashboard">dashboard</f:translate>
</f:link.action>
<f:link.action action="content" controller="Analysis" class="btn{lux:backend.getClassNameOnAction(onAction:'content',view:view)}">
</f:be.link>
<f:be.link
route="lux_LuxAnalysis"
parameters="{tx_lux_lux_luxanalysis:'{action:\'content\',controller:\'Analysis\'}'}"
class="btn{lux:backend.getClassNameOnAction(onAction:'content',view:view)}">
<f:translate key="LLL:EXT:lux/Resources/Private/Language/locallang_db.xlf:module.analysis.content">content</f:translate>
</f:link.action>
</f:be.link>
<lux:condition.isNewsExtensionActivated>
<f:link.action action="news" controller="Analysis" class="btn{lux:backend.getClassNameOnAction(onAction:'news',view:view)}">
<f:be.link
route="lux_LuxAnalysis"
parameters="{tx_lux_lux_luxanalysis:'{action:\'news\',controller:\'Analysis\'}'}"
class="btn{lux:backend.getClassNameOnAction(onAction:'news',view:view)}">
<f:translate key="LLL:EXT:lux/Resources/Private/Language/locallang_db.xlf:module.analysis.news">news</f:translate>
</f:link.action>
</f:be.link>
</lux:condition.isNewsExtensionActivated>
<f:link.action action="utm" controller="Analysis" class="btn{lux:backend.getClassNameOnAction(onAction:'utm',view:view)}">
<f:be.link
route="lux_LuxAnalysis"
parameters="{tx_lux_lux_luxanalysis:'{action:\'utm\',controller:\'Analysis\'}'}"
class="btn{lux:backend.getClassNameOnAction(onAction:'utm',view:view)}">
<f:translate key="LLL:EXT:lux/Resources/Private/Language/locallang_db.xlf:module.analysis.utm">UTM</f:translate>
</f:link.action>
<f:link.action action="linkListener" controller="Analysis" class="btn{lux:backend.getClassNameOnAction(onAction:'linkListener',view:view)}">
</f:be.link>
<f:be.link
route="lux_LuxAnalysis"
parameters="{tx_lux_lux_luxanalysis:'{action:\'linkListener\',controller:\'Analysis\'}'}"
class="btn{lux:backend.getClassNameOnAction(onAction:'linkListener',view:view)}">
<f:translate key="LLL:EXT:lux/Resources/Private/Language/locallang_db.xlf:module.analysis.linkListeners">Linklisteners</f:translate>
</f:link.action>
</f:be.link>
<lux:condition.isSearchAvailable>
<f:link.action action="search" controller="Analysis" class="btn{lux:backend.getClassNameOnAction(onAction:'search',view:view)}">
<f:be.link
route="lux_LuxAnalysis"
parameters="{tx_lux_lux_luxanalysis:'{action:\'search\',controller:\'Analysis\'}'}"
class="btn{lux:backend.getClassNameOnAction(onAction:'search',view:view)}">
<f:translate key="LLL:EXT:lux/Resources/Private/Language/locallang_db.xlf:module.analysis.search">Search</f:translate>
</f:link.action>
</f:be.link>
</lux:condition.isSearchAvailable>
14 changes: 10 additions & 4 deletions Resources/Private/Partials/Lead/ActionSwitcher.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<f:link.action action="dashboard" controller="Lead" class="btn{lux:backend.getClassNameOnAction(onAction:'dashboard',view:view)}">
<f:be.link
route="lux_LuxLeads"
parameters="{tx_lux_lux_luxleads:'{action:\'dashboard\',controller:\'Lead\'}'}"
class="btn{lux:backend.getClassNameOnAction(onAction:'dashboard',view:view)}">
<f:translate key="LLL:EXT:lux/Resources/Private/Language/locallang_db.xlf:module.lead.dashboard">dashboard</f:translate>
</f:link.action>
<f:link.action action="list" controller="Lead" class="btn{lux:backend.getClassNameOnAction(onAction:'list',view:view)}">
</f:be.link>
<f:be.link
route="lux_LuxLeads"
parameters="{tx_lux_lux_luxleads:'{action:\'list\',controller:\'Lead\'}'}"
class="btn{lux:backend.getClassNameOnAction(onAction:'list',view:view)}">
<f:translate key="LLL:EXT:lux/Resources/Private/Language/locallang_db.xlf:module.lead.list">list</f:translate>
</f:link.action>
</f:be.link>

0 comments on commit d2d55a3

Please sign in to comment.