-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not show the tracking code with empty or invalid settings
The tracking code was displayed even if no idSite or host was configured in the backend module (or manually in Settings.yaml). This fixes this by adding two conditions that check if both host and idSite parameters are set.
- Loading branch information
1 parent
4fca824
commit ee6a43e
Showing
2 changed files
with
9 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
# A Piwik tracking code object | ||
# | ||
prototype(Portachtzig.Neos.Piwik:TrackingCode) < prototype(TYPO3.TypoScript:Template) { | ||
@if.inLiveWorkspace = ${node.context.workspaceName == 'live'} | ||
templatePath = 'resource://Portachtzig.Neos.Piwik/Private/Templates/Prototypes/TrackingCode.html' | ||
settings = ${Configuration.setting('Portachtzig.Neos.Piwik')} | ||
|
||
// Show tracking code only in live workspace and if all necessary parameters are set | ||
@if { | ||
inLiveWorkspace = ${node.context.workspaceName == 'live'} | ||
hostIsSet = ${settings.host} | ||
idSiteIsSet = ${settings.idSite} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters