Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions Configuration/PageTs/PageTs.tsconfig
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
mod.wizards.newContentElement {
wizardItems {
common.elements.codeblock {
title = LLL:EXT:codeblock/Resources/Private/Language/locallang_db.xlf:tt_content.CType
description = LLL:EXT:codeblock/Resources/Private/Language/locallang_db.xlf:tt_content.wizard.description
tt_content_defValues.CType = codeblock
iconIdentifier = content-codeblock
}
common.show := addToList(codeblock)
}
}
@import 'EXT:codeblock/Configuration/Sets/codeblock/page.tsconfig'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new content element wizard is not required for v13, i would suggest to not add page.tsconfig to side set (but add description and group to TCA config (https://github.com/b13/codeblock/blob/master/Configuration/TCA/Overrides/tt_content.php#L17)

2 changes: 2 additions & 0 deletions Configuration/Sets/codeblock/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: b13/codeblock
label: b13 codeblock element configuration
11 changes: 11 additions & 0 deletions Configuration/Sets/codeblock/page.tsconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
mod.wizards.newContentElement {
wizardItems {
common.elements.codeblock {
title = LLL:EXT:codeblock/Resources/Private/Language/locallang_db.xlf:tt_content.CType
description = LLL:EXT:codeblock/Resources/Private/Language/locallang_db.xlf:tt_content.wizard.description
tt_content_defValues.CType = codeblock
iconIdentifier = content-codeblock
}
common.show := addToList(codeblock)
}
}
12 changes: 12 additions & 0 deletions Configuration/Sets/codeblock/setup.typoscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
tt_content.codeblock =< lib.contentElement
tt_content.codeblock {
templateName = Codeblock

templateRootPaths.0 = EXT:codeblock/Resources/Private/Templates

dataProcessing.1567071612 = B13\Codeblock\DataProcessing\HighlightProcessor
dataProcessing.1567071612 {
field = bodytext
as = bodytext_formatted
}
}
13 changes: 1 addition & 12 deletions Configuration/TypoScript/setup.typoscript
Original file line number Diff line number Diff line change
@@ -1,12 +1 @@
tt_content.codeblock =< lib.contentElement
tt_content.codeblock {
templateName = Codeblock

templateRootPaths.0 = EXT:codeblock/Resources/Private/Templates

dataProcessing.1567071612 = B13\Codeblock\DataProcessing\HighlightProcessor
dataProcessing.1567071612 {
field = bodytext
as = bodytext_formatted
}
}
@import 'EXT:codeblock/Configuration/Sets/codeblock/setup.typoscript'