-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Demonstrate how to change FSC output in site package tutori…
…al package
- Loading branch information
Showing
5 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
1 change: 0 additions & 1 deletion
1
...ckages/site_package_tutorial/13.4/src/Resources/Private/ContentElements/Partials/.gitkeep
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...e_tutorial/13.4/src/Resources/Private/ContentElements/Partials/Media/Rendering/Image.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,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> |
1 change: 0 additions & 1 deletion
1
...kages/site_package_tutorial/13.4/src/Resources/Private/ContentElements/Templates/.gitkeep
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
...te_package_tutorial/13.4/src/Resources/Private/ContentElements/Templates/MenuSitemap.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,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> |
18 changes: 18 additions & 0 deletions
18
...e_package_tutorial/13.4/src/Resources/Private/ContentElements/Templates/MenuSubpages.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,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> |