-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Dynamic page based and content based exclusion from parsing
solves #166
- Loading branch information
Showing
13 changed files
with
256 additions
and
3 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
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
defined('TYPO3_MODE') || die(); | ||
|
||
call_user_func(function () { | ||
|
||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('pages', [ | ||
'tx_dpnglossary_disable_parser' => [ | ||
'label' => 'LLL:EXT:dpn_glossary/Resources/Private/Language/locallang.xlf:pages.glossary_settings', | ||
'exclude' => true, | ||
'config' => [ | ||
'type' => 'check', | ||
'renderType' => 'checkboxToggle', | ||
'items' => [ | ||
[ | ||
0 => 'LLL:EXT:dpn_glossary/Resources/Private/Language/locallang.xlf:pages.parse_for_glossary', | ||
1 => '', | ||
'labelChecked' => 'Enabled', | ||
'labelUnchecked' => 'Disabled', | ||
'invertStateDisplay' => true, | ||
], | ||
], | ||
], | ||
], | ||
]); | ||
|
||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes( | ||
'pages', | ||
'tx_dpnglossary_disable_parser', | ||
'', | ||
'after:php_tree_stop' | ||
); | ||
}); |
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
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
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
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
53 changes: 53 additions & 0 deletions
53
Resources/Private/Extensions/FluidStyledContent/Layouts/Default.html
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true"> | ||
<f:if condition="{data.frame_class} != none"> | ||
<f:then> | ||
|
||
<div id="c{data.uid}" class="frame frame-{data.frame_class} frame-type-{data.CType} frame-layout-{data.layout}{f:if(condition: data.space_before_class, then: ' frame-space-before-{data.space_before_class}')}{f:if(condition: data.space_after_class, then: ' frame-space-after-{data.space_after_class}')} {f:if(condition: data.tx_dpnglossary_disable_parser, then: ' tx_dpn_glossary_exclude')}"> | ||
<f:if condition="{data._LOCALIZED_UID}"> | ||
<a id="c{data._LOCALIZED_UID}"></a> | ||
</f:if> | ||
<f:render section="Before" optional="true"> | ||
<f:render partial="DropIn/Before/All" arguments="{_all}" /> | ||
</f:render> | ||
<f:render section="Header" optional="true"> | ||
<f:render partial="Header/All" arguments="{_all}" /> | ||
</f:render> | ||
<f:render section="Main" optional="true" /> | ||
<f:render section="Footer" optional="true"> | ||
<f:render partial="Footer/All" arguments="{_all}" /> | ||
</f:render> | ||
<f:render section="After" optional="true"> | ||
<f:render partial="DropIn/After/All" arguments="{_all}" /> | ||
</f:render> | ||
</div> | ||
|
||
</f:then> | ||
<f:else> | ||
|
||
<a id="c{data.uid}"></a> | ||
<f:if condition="{data._LOCALIZED_UID}"> | ||
<a id="c{data._LOCALIZED_UID}"></a> | ||
</f:if> | ||
<f:if condition="{data.space_before_class}"> | ||
<div class="frame-space-before-{data.space_before_class}"></div> | ||
</f:if> | ||
<f:render section="Before" optional="true"> | ||
<f:render partial="DropIn/Before/All" arguments="{_all}" /> | ||
</f:render> | ||
<f:render section="Header" optional="true"> | ||
<f:render partial="Header/All" arguments="{_all}" /> | ||
</f:render> | ||
<f:render section="Main" optional="true" /> | ||
<f:render section="Footer" optional="true"> | ||
<f:render partial="Footer/All" arguments="{_all}" /> | ||
</f:render> | ||
<f:render section="After" optional="true"> | ||
<f:render partial="DropIn/After/All" arguments="{_all}" /> | ||
</f:render> | ||
<f:if condition="{data.space_after_class}"> | ||
<div class="frame-space-after-{data.space_after_class}"></div> | ||
</f:if> | ||
|
||
</f:else> | ||
</f:if> | ||
</html> |
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
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
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