Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[TASK] Regenerate Code Snippetc (#739)
releases: main, 12.4
  • Loading branch information
linawolf committed Apr 30, 2023
1 parent 2708361 commit fb1bc92
Show file tree
Hide file tree
Showing 15 changed files with 38 additions and 30 deletions.
Expand Up @@ -11,23 +11,23 @@
<h2>Output</h2>
<ul class="nav nav-pills">
<f:for each="{headerMenu}" as="menuItem">
<li class="nav-item {f:if(condition:'{menuItem.children}',then:'dropdown')}">
<f:if condition="{menuItem.children}">
<li class="nav-item {f:if(condition: menuItem.hasSubpages, then: 'dropdown')}">
<f:if condition="{menuItem.hasSubpages}">
<f:then>
<!-- Item has children -->
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button"
aria-haspopup="true" aria-expanded="false">
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#" role="button" aria-expanded="false">
<f:if condition="{menuItem.files}">
<f:image image="{menuItem.files.0}" class="" width="20"/>
</f:if>
{menuItem.title}</a>
{menuItem.title}
</a>
<div class="dropdown-menu">
<f:for each="{menuItem.children}" as="menuItemLevel2">
<f:if condition="{menuItemLevel2.spacer}">
<f:then><div class="dropdown-divider"></div></f:then>
<f:else>
<f:link.page pageUid="{menuItemLevel2.uid}"
class="dropdown-item {f:if(condition:'{menuItemLevel2.active}',then:'active')}">
<f:link.page pageUid="{menuItemLevel2.data.uid}"
class="dropdown-item {f:if(condition: menuItemLevel2.active, then: 'active')}">
{menuItemLevel2.title}
</f:link.page>
</f:else>
Expand All @@ -37,9 +37,9 @@
</f:then>
<f:else>
<!-- Item has no children -->
<f:link.page pageUid="{menuItem.data.uid}" class="nav-link {f:if(condition:'{menuItem.active}',then:'active')}">
<f:link.page pageUid="{menuItem.data.uid}" class="nav-link {f:if(condition: menuItem.active, then:'active')}">
<f:if condition="{menuItem.files}">
<f:image image="{menuItem.files.0}" class="" width="20"/>
<f:image image="{menuItem.files.0}" width="20"/>
</f:if>
{menuItem.title}
</f:link.page>
Expand All @@ -48,6 +48,5 @@
</li>
</f:for>
</ul>

</html>

@@ -1,4 +1,4 @@
.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
.. Extracted from EXT:examples/Configuration/TypoScript/DataProcessors/Processors/CommaSeparatedValueProcessor.typoscript
.. code-block:: typoscript
Expand All @@ -22,3 +22,4 @@
}
}
}
@@ -1,4 +1,4 @@
.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
.. Extracted from EXT:examples/Configuration/TypoScript/DataProcessors/Processors/DatabaseQueryProcessor.typoscript
.. code-block:: typoscript
Expand Down Expand Up @@ -28,3 +28,4 @@
}
}
}
@@ -1,4 +1,4 @@
.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
.. Extracted from EXT:examples/Configuration/TypoScript/DataProcessors/Processors/FilesProcessor.typoscript
.. code-block:: typoscript
Expand All @@ -21,3 +21,4 @@
}
}
}
@@ -1,4 +1,4 @@
.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
.. Extracted from EXT:examples/Configuration/TypoScript/DataProcessors/Processors/GalleryProcessor.typoscript
.. code-block:: typoscript
Expand All @@ -21,7 +21,7 @@
sorting = title
sorting.direction = descending
}
# 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
Expand All @@ -44,3 +44,4 @@
}
}
}
@@ -1,4 +1,4 @@
.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
.. Extracted from EXT:examples/Configuration/TypoScript/DataProcessors/Processors/LanguageMenuProcessor.typoscript
.. code-block:: typoscript
Expand All @@ -18,3 +18,4 @@
}
}
}
@@ -1,4 +1,4 @@
.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
.. Extracted from EXT:examples/Configuration/TypoScript/DataProcessors/Processors/MenuProcessor.typoscript
.. code-block:: typoscript
Expand Down Expand Up @@ -30,3 +30,4 @@
}
}
}
@@ -1,4 +1,4 @@
.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
.. Extracted from EXT:examples/Configuration/TypoScript/DataProcessors/Processors/SiteLanguageProcessor.typoscript
.. code-block:: typoscript
Expand All @@ -17,3 +17,4 @@
}
}
}
@@ -1,4 +1,4 @@
.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
.. Extracted from EXT:examples/Configuration/TypoScript/DataProcessors/Processors/SiteProcessor.typoscript
.. code-block:: typoscript
Expand All @@ -17,3 +17,4 @@
}
}
}
@@ -1,4 +1,4 @@
.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
.. Extracted from EXT:examples/Configuration/TypoScript/DataProcessors/Processors/SplitProcessor.typoscript
.. code-block:: typoscript
Expand All @@ -22,3 +22,4 @@
}
}
}
Expand Up @@ -13,7 +13,7 @@
tt_content.menu_categorized_pages {
templateName = MenuCategorizedPages
dataProcessing {
10 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
10 = menu
10 {
special = categories
special {
Expand All @@ -23,7 +23,7 @@
order = asc
}
dataProcessing {
10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
10 = files
10 {
references.fieldName = media
}
Expand Down
4 changes: 2 additions & 2 deletions Documentation/CodeSnippets/Menu/TypoScript/MenuPages.rst.txt
Expand Up @@ -13,12 +13,12 @@
tt_content.menu_pages {
templateName = MenuPages
dataProcessing {
10 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
10 = menu
10 {
special = list
special.value.field = pages
dataProcessing {
10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
10 = files
10 {
references.fieldName = media
}
Expand Down
Expand Up @@ -13,7 +13,7 @@
tt_content.menu_recently_updated {
templateName = MenuRecentlyUpdated
dataProcessing {
10 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
10 = menu
10 {
special = updated
special {
Expand All @@ -22,7 +22,7 @@
excludeNoSearchPages = 1
}
dataProcessing {
10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
10 = files
10 {
references.fieldName = media
}
Expand Down
Expand Up @@ -13,7 +13,7 @@
tt_content.menu_related_pages {
templateName = MenuRelatedPages
dataProcessing {
10 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
10 = menu
10 {
special = keywords
special {
Expand All @@ -22,7 +22,7 @@
}
alternativeSortingField = title
dataProcessing {
10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
10 = files
10 {
references.fieldName = media
}
Expand Down
Expand Up @@ -13,12 +13,12 @@
tt_content.menu_subpages {
templateName = MenuSubpages
dataProcessing {
10 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
10 = menu
10 {
special = directory
special.value.field = pages
dataProcessing {
10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
10 = files
10 {
references.fieldName = media
}
Expand Down

0 comments on commit fb1bc92

Please sign in to comment.