Skip to content

Commit

Permalink
[FEATURE] Demonstrate how to change FSC output in site package tutori…
Browse files Browse the repository at this point in the history
…al package
  • Loading branch information
linawolf committed Nov 30, 2024
1 parent 124f6dd commit f776865
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 2 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:media class="image-embed-item rounded" file="{file}" width="{dimensions.width}" height="{dimensions.height}" alt="{file.alternative}" title="{file.title}" loading="{settings.media.lazyLoading}" decoding="{settings.media.imageDecoding}" />
</html>

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="Default" />
<f:section name="Main">

<f:render section="Menu" arguments="{menu: menu, level: 1}" />

</f:section>
<f:section name="Menu">

<f:if condition="{menu}">
<ul class="list-group ps-4 mt-2">
<f:for each="{menu}" as="page">
<li class="list-group-item">
<a href="{page.link}" class="text-decoration-none text-dark level-{level}{f:if(condition: '{level} < 2', then: ' fw-bold')}">
<span>{page.title}</span>
</a>
<f:render section="Menu" arguments="{menu: page.children, level: '{level + 1}'}" />
</li>
</f:for>
</ul>
</f:if>

</f:section>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="Default" />
<f:section name="Main">

<f:if condition="{menu}">
<ul class="nav flex-column">
<f:for each="{menu}" as="page">
<li class="nav-item">
<a href="{page.link}" class="nav-link{f:if(condition: 'page.active', then: ' active')}">
<span>{page.title}</span>
</a>
</li>
</f:for>
</ul>
</f:if>

</f:section>
</html>

0 comments on commit f776865

Please sign in to comment.