Skip to content

Commit

Permalink
[TASK] Update codesnippets (#1363)
Browse files Browse the repository at this point in the history
Releases: main, 13.4
  • Loading branch information
linawolf authored Oct 21, 2024
1 parent ed26dd9 commit 50684ff
Show file tree
Hide file tree
Showing 44 changed files with 126 additions and 241 deletions.
26 changes: 0 additions & 26 deletions Documentation/CodeSnippets/Config/Menus.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,37 +68,11 @@
'sourceFile' => 'EXT:fluid_styled_content/Resources/Private/Templates/MenuCategorizedPages.html',
'targetFileName' => 'CodeSnippets/Menu/Template/MenuCategorizedPages.rst.txt',
],
// special = browse
[
'action' => 'createCodeSnippet',
'caption' => 'EXT:site_package/Configuration/TypoScript/Seo/Setup/RelPrevNextMenu.typoscript',
'sourceFile' => 'EXT:site_package/Configuration/TypoScript/Seo/Setup/RelPrevNextMenu.typoscript',
'targetFileName' => 'CodeSnippets/Menu/TypoScript/RelPrevNextMenu.rst.txt',
],
// special = rootline
[
'action' => 'createCodeSnippet',
'caption' => 'EXT:site_package/Configuration/TypoScript/Menus/Setup/BreadcrumbLib.typoscript',
'sourceFile' => 'EXT:site_package/Configuration/TypoScript/Menus/Setup/BreadcrumbLib.typoscript',
'targetFileName' => 'CodeSnippets/Menu/TypoScript/BreadcrumbLib.rst.txt',
],
[
'action' => 'createCodeSnippet',
'caption' => 'EXT:site_package/Configuration/TypoScript/Menus/Setup/BreadcrumbDataProcessor.typoscript',
'sourceFile' => 'EXT:site_package/Configuration/TypoScript/Menus/Setup/BreadcrumbDataProcessor.typoscript',
'targetFileName' => 'CodeSnippets/Menu/TypoScript/BreadcrumbDataProcessor.rst.txt',
],
[
'action' => 'createCodeSnippet',
'caption' => 'EXT:site_package/Resources/Private/Templates/Partials/Navigation/Breadcrumb.html',
'sourceFile' => 'EXT:site_package/Resources/Private/Templates/Partials/Navigation/Breadcrumb.html',
'targetFileName' => 'CodeSnippets/Menu/Template/BreadcrumbDataProcessor.rst.txt',
],
// special = language
[
'action' => 'createCodeSnippet',
'caption' => 'EXT:site_package/Configuration/TypoScript/Menus/Setup/LanguageMenuLib.typoscript',
'sourceFile' => 'EXT:site_package/Configuration/TypoScript/Menus/Setup/LanguageMenuLib.typoscript',
'targetFileName' => 'CodeSnippets/Menu/TypoScript/LanguageMenuLib.rst.txt',
],
];
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
:caption: EXT:examples/Configuration/TypoScript/DataProcessors/General.typoscript
lib.contentElement {
templateRootPaths.200 = EXT:examples/Resources/Private/Templates/ContentElements/
partialRootPaths.200 = EXT:examples/Resources/Private/Partials/ContentElements/
layoutRootPaths.200 = EXT:examples/Resources/Private/Layout/
templateRootPaths.200 = EXT:examples/Resources/Private/Templates/ContentElements/
partialRootPaths.200 = EXT:examples/Resources/Private/Partials/ContentElements/
layoutRootPaths.200 = EXT:examples/Resources/Private/Layout/
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@
</f:for>
</table>
</html>

Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@
</ul>

</html>

Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,3 @@
</div>

</html>

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
</div>
</div>
</html>

Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@
</f:for>

</html>

Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,3 @@
</f:if>

</html>

Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,3 @@
</f:for>
</ul>
</html>

Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@
<p>Base url: <f:link.page pageUid="{site.rootPageId}">{site.configuration.base}</f:link.page></p>

</html>

Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@
<p>language id: {language.languageId}</p>

</html>

Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@
</f:for>

</html>

Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
examples_newcontentcsv =< lib.contentElement
examples_newcontentcsv {
templateName = DataProcCsv
# Before TYPO3 v12.1 you have to specify the fully-qualified class name of the processor
# dataProcessing.10 = TYPO3\CMS\Frontend\DataProcessing\CommaSeparatedValueProcessor
# Since TYPO3 v12.1 one can also use the available alias
dataProcessing.10 = comma-separated-value
dataProcessing.10 {
if.isTrue.field = bodytext
Expand All @@ -22,4 +19,3 @@
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,10 @@
examples_dataproccustom =< lib.contentElement
examples_dataproccustom {
templateName = DataProcCustom
# Before TYPO3 v12.1 you have to give the fully-qualified class name of the processor
# dataProcessing.10 = T3docs\Examples\DataProcessing\CustomCategoryProcessor
# Since TYPO3 v12.1 one can also use a (in Services.yaml) configured alias
dataProcessing.10 = custom-category
dataProcessing.10 {
as = categories
categoryList.field = categories
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
examples_dataprocdb =< lib.contentElement
examples_dataprocdb {
templateName = DataProcDb
# Before TYPO3 v12.1 you have to specify the fully-qualified class name of the processor
# dataProcessing.10 = TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor
# Since TYPO3 v12.1 one can also use the available alias
dataProcessing.10 = database-query
dataProcessing.10 {
if.isTrue.field = pages
Expand All @@ -28,4 +25,3 @@
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
examples_dataprocfiles =< lib.contentElement
examples_dataprocfiles {
templateName = DataProcFiles
# Before TYPO3 v12.1 you have to specify the fully-qualified class name of the processor
# dataProcessing.10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
# Since TYPO3 v12.1 one can also use the available alias
dataProcessing.10 = files
dataProcessing.10 {
as = images
Expand All @@ -21,4 +18,3 @@
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
templateName = DataProcGallery
dataProcessing {
# Process files
# Before TYPO3 v12.1 you have to specify the fully-qualified class name of the processor
# 10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
# Since TYPO3 v12.1 one can also use the available alias
10 = files
10 {
as = images
Expand All @@ -23,9 +20,6 @@
}
# Calculate gallery info
# Before TYPO3 v12.1 you have to specify the fully-qualified class name of the processor
# 20 = TYPO3\CMS\Frontend\DataProcessing\GalleryProcessor
# Since TYPO3 v12.1 one can also use the available alias
20 = gallery
20 {
filesProcessedDataKey = images
Expand All @@ -44,4 +38,3 @@
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,10 @@
examples_dataproclang =< lib.contentElement
examples_dataproclang {
templateName = DataProcLangMenu
# Before TYPO3 v12.1 you have to specify the fully-qualified class name of the processor
# dataProcessing.10 = TYPO3\CMS\Frontend\DataProcessing\LanguageMenuProcessor
# Since TYPO3 v12.1 one can also use the available alias
dataProcessing.10 = language-menu
dataProcessing.10 {
languages = auto
as = languageNavigation
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
examples_dataprocmenu =< lib.contentElement
examples_dataprocmenu {
templateName = DataProcMenu
# Before TYPO3 v12.1 you have to specify the fully-qualified class name of the processor
# dataProcessing.10 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
# Since TYPO3 v12.1 one can also use the available alias
dataProcessing.10 = menu
dataProcessing.10 {
levels = 2
Expand All @@ -19,9 +16,6 @@
includeSpacer = 1
titleField = nav_title // title
dataProcessing {
# Before TYPO3 v12.1 you have to specify the fully-qualified class name of the processor
# dataProcessing.10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
# Since TYPO3 v12.1 one can also use the available alias
10 = files
10 {
references.fieldName = media
Expand All @@ -30,4 +24,3 @@
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,9 @@
examples_dataprocsitelanguage =< lib.contentElement
examples_dataprocsitelanguage {
templateName = DataProcSiteLanguage
# Before TYPO3 v12.1 you have to specify the fully-qualified class name of the processor
# dataProcessing.10 = TYPO3\CMS\Frontend\DataProcessing\SiteLanguageProcessor
# Since TYPO3 v12.1 one can also use the available alias
dataProcessing.10 = site-language
dataProcessing.10 {
as = language
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,9 @@
examples_dataprocsite =< lib.contentElement
examples_dataprocsite {
templateName = DataProcSite
# Before TYPO3 v12.1 you have to specify the fully-qualified class name of the processor
# dataProcessing.10 = TYPO3\CMS\Frontend\DataProcessing\SiteProcessor
# Since TYPO3 v12.1 one can also use the available alias
dataProcessing.10 = site
dataProcessing.10 {
as = site
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
examples_dataprocsplit =< lib.contentElement
examples_dataprocsplit {
templateName = DataProcSplit
# Before TYPO3 v12.1 you have to specify the fully-qualified class name of the processor
# dataProcessing.10 = TYPO3\CMS\Frontend\DataProcessing\SplitProcessor
# Since TYPO3 v12.1 one can also use the available alias
dataProcessing.10 = split
dataProcessing.10 {
as = urlParts
Expand All @@ -22,4 +19,3 @@
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,24 @@
:caption: EXT:site_package/Resources/Private/Templates/Partials/Navigation/Breadcrumb.html

<f:if condition="{breadcrumb}">
<ol class="breadcrumb">
<f:for each="{breadcrumb}" as="item">
<li class="breadcrumb-item{f:if(condition: item.current, then: ' active')}" >
<f:if condition="{item.current}">
<f:then>
<span class="breadcrumb-text">{item.title}</span>
</f:then>
<f:else>
<a class="breadcrumb-link" href="{item.link}" title="{item.title}">
<span class="breadcrumb-text">{item.title}</span>
</a>
</f:else>
</f:if>
</li>
</f:for>
</ol>
<div class="container">
<nav aria-label="breadcrumb">
<ol class="breadcrumb breadcrumb-chevron p-3 bg-body-tertiary">
<f:for each="{breadcrumb}" as="item">
<f:if condition="{item.current}">
<f:then>
<li class="breadcrumb-item active" aria-current="page">{item.title}</li>
</f:then>
<f:else>
<li class="breadcrumb-item">
<a class="link-body-emphasis fw-semibold text-decoration-none" href="{item.link}" title="{item.title}">
<span class="breadcrumb-text">{item.title}</span>
</a>
</li>
</f:else>
</f:if>
</f:for>
</ol>
</nav>
</div>
</f:if>

Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@

</f:section>
</html>

1 change: 0 additions & 1 deletion Documentation/CodeSnippets/Menu/Template/MenuPages.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,3 @@

</f:section>
</html>

Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@

</f:section>
</html>

Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@

</f:section>
</html>

Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@

</f:section>
</html>

This file was deleted.

Loading

0 comments on commit 50684ff

Please sign in to comment.