Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
mod {
web_layout {
BackendLayouts {
Subpage {
subpage {
title = LLL:EXT:my_site_package/Resources/Private/Language/locallang_be.xlf:backend_layout.subpage
config {
backend_layout {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,17 @@ TCEFORM {
}

TCEMAIN {
pages {
# Pages will *not* have "(copy)" appended:
disablePrependAtCopy = 1
# Pages will *not* be hidden upon copy:
disableHideAtCopy = 1
}
tt_content {
# Content will *not* have "(copy)" appended:
disablePrependAtCopy = 1
table {
pages {
# Pages will *not* have "(copy)" appended:
disablePrependAtCopy = 1
# Pages will *not* be hidden upon copy:
disableHideAtCopy = 1
}

tt_content {
# Content will *not* have "(copy)" appended:
disablePrependAtCopy = 1
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
page {
10 {
dataProcessing {
40 = menu
40 {
as = footerMenu
special = directory
special.value = {$MySitePackage.footerMenuRoot}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
@import './PageTsConfig/'
@import './PageTsConfig/BackendLayouts/'

Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ categories:
MySitePackage.layout:
label: 'Layout'
parent: MySitePackage
MySitePackage.menus:
label: 'Menus'
parent: MySitePackage

settings:
MySitePackage.template_path:
Expand Down Expand Up @@ -36,3 +39,10 @@ settings:
category: MySitePackage.layout
type: string
default: 'EXT:my_site_package/Resources/Public/Icons/favicon.ico'

MySitePackage.footerMenuRoot:
label: 'Footer menu root uid'
description: 'The subpages of this page are displayed in the footer'
category: MySitePackage.menus
type: int
default: 2
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;

ExtensionManagementUtility::addTcaSelectItemGroup(
'tt_content',
'CType',
'my_site_package',
'LLL:EXT:my_site_package/Resources/Private/Language/locallang_be.xlf:content_element.group.my_site_package',
'after:default',
);
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
name: my-site-package/carousel
typeName: my_site_package_carousel
group: default
group: my_site_package
prefixFields: true
prefixType: full
fields:
- identifier: carousel_items
type: Collection
foreign_field: parentid
minitems: 1
appearance:
collapseAll: true
levelLinksPosition: both
fields:
- identifier: image
type: File
allowed: common-image-types
minitems: 1
relationship: manyToOne
- identifier: header
type: Text
- identifier: description
Expand Down
Original file line number Diff line number Diff line change
@@ -1,32 +1,38 @@
<?xml version="1.0"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file datatype="plaintext" original="labels.xlf" source-language="en" date="2024-11-24T18:55:27+00:00" product-name="t3docs/carousel">
<header/>
<body>
<trans-unit id="title" resname="title">
<source>Carousel</source>
</trans-unit>
<trans-unit id="description" resname="description">
<source>See also https://getbootstrap.com/docs/5.0/components/carousel/</source>
</trans-unit>
<trans-unit id="carousel_items.label" resname="carousel_items.label">
<source>Carousel Items</source>
</trans-unit>
<trans-unit id="carousel_items.image.label" resname="carousel_items.image.label">
<source>Image</source>
</trans-unit>
<trans-unit id="carousel_items.header.label" resname="carousel_items.header.label">
<source>Header</source>
</trans-unit>
<trans-unit id="carousel_items.description.label" resname="carousel_items.description.label">
<source>Description</source>
</trans-unit>
<trans-unit id="previous.label" resname="previous.label">
<source>Previous</source>
</trans-unit>
<trans-unit id="next.label" resname="next.label">
<source>Next</source>
</trans-unit>
</body>
</file>
<file datatype="plaintext" original="labels.xlf" source-language="en" date="2024-11-24T18:55:27+00:00" product-name="t3docs/carousel">
<header/>
<body>
<trans-unit id="title" resname="title">
<source>Carousel</source>
</trans-unit>
<trans-unit id="description" resname="description">
<source>See also https://getbootstrap.com/docs/5.0/components/carousel/</source>
</trans-unit>
<trans-unit id="carousel_items.label" resname="carousel_items.label">
<source>Carousel Items</source>
</trans-unit>
<trans-unit id="carousel_items.image.label" resname="carousel_items.image.label">
<source>Image</source>
</trans-unit>
<trans-unit id="carousel_items.header.label" resname="carousel_items.header.label">
<source>Header</source>
</trans-unit>
<trans-unit id="carousel_items.description.label" resname="carousel_items.description.label">
<source>Description</source>
</trans-unit>
<trans-unit id="previous.label" resname="previous.label">
<source>Previous</source>
</trans-unit>
<trans-unit id="next.label" resname="next.label">
<source>Next</source>
</trans-unit>
<trans-unit id="backend.itemCount" resname="backend.itemCount">
<source>Carousel with %s items</source>
</trans-unit>
<trans-unit id="backend.lastUpdated" resname="backend.lastUpdated">
<source>Last updated %s</source>
</trans-unit>
</body>
</file>
</xliff>
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
<f:asset.css identifier="content-block-t3docs-t3docs/carousel-be" href="{cb:assetPath()}/preview.css"/>
<f:layout name="Preview"/>

<div class="row">
<f:for each="{data.carousel_items}" as="item" iteration="iteration">
<div class="col">
<f:for each="{item.image}" as="image" iteration="iteration">
<f:image image="{image}" width="100"/><br/>
</f:for>
{item.header}
</div>
</f:for>
</div>
<f:section name="Header">
<f:variable name="itemCount"><f:count subject="{data.carousel_items}" /></f:variable>
<div>{f:translate(key: '{cb:languagePath()}:backend.itemCount', arguments: {0: '{itemCount}'})}</div>
</f:section>

<f:section name="Content">
<div class="row">
<f:for each="{data.carousel_items}" as="item" iteration="iteration">
<div class="col">
<f:for each="{item.image}" as="image" iteration="iteration">
<f:image image="{image}" width="100"/><br/>
</f:for>
{item.header}
</div>
</f:for>
</div>
</f:section>

<f:section name="Footer">
<f:variable name="lastUpdated"><f:format.date>{data.rawRecord.crdate}</f:format.date></f:variable>
<div>{f:translate(key: '{cb:languagePath()}:backend.lastUpdated', arguments: {0: '{lastUpdated}'})}</div>
</f:section>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: my-site-package/jumbotron
typeName: my_site_package_jumbotron
group: default
group: my_site_package
prefixFields: true
prefixType: full
fields:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -590,8 +590,8 @@
<field index="mount_pid_ol" type="integer">0</field>
<field index="module"></field>
<field index="l18n_cfg" type="integer">0</field>
<field index="backend_layout">pagets__Default</field>
<field index="backend_layout_next_level">pagets__Subpage</field>
<field index="backend_layout">pagets__default</field>
<field index="backend_layout_next_level">pagets__subpage</field>
<field index="tsconfig_includes"></field>
<field index="seo_title"></field>
<field index="no_index" type="integer">0</field>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0">
<file source-language="en" datatype="plaintext" original="messages" date="2025-01-01UTC02:32:210">
<file source-language="en" datatype="plaintext" original="messages" date="2025-01-22UTC13:27:370">
<header>
<authorName>J. Doe</authorName>
<authorEmail>[email protected]</authorEmail>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0">
<file source-language="en" datatype="plaintext" original="messages" date="2025-01-01UTC02:32:210">
<file source-language="en" datatype="plaintext" original="messages" date="2025-01-22UTC13:27:370">
<header>
<authorName>J. Doe</authorName>
<authorEmail>[email protected]</authorEmail>
Expand All @@ -21,6 +21,9 @@
<trans-unit id="backend_layout.column.right">
<source>Right</source>
</trans-unit>
<trans-unit id="content_element.group.my_site_package">
<source>My Site Package elements</source>
</trans-unit>
</body>
</file>
</xliff>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0">
<file source-language="en" datatype="plaintext" original="messages" date="2025-01-01UTC02:32:210">
<file source-language="en" datatype="plaintext" original="messages" date="2025-01-22UTC13:27:370">
<header>
<authorName>J. Doe</authorName>
<authorEmail>[email protected]</authorEmail>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<ul class="nav col-md-4 justify-content-end">
<li class="nav-item"><a href="#" class="nav-link px-2 text-body-secondary">Data privacy</a></li>
<li class="nav-item"><a href="#" class="nav-link px-2 text-body-secondary">Imprint</a></li>
</ul>
<f:if condition="{footerMenu}">
<ul class="nav col-md-4 justify-content-end">
<f:for each="{footerMenu}" as="menuItem">
<li class="nav-item"><a href="{menuItem.link}" class="nav-link px-2 text-body-secondary">{menuItem.title}</a></li>
</f:for>
</ul>
</f:if>
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@
.navbar-expand-lg .navbar-nav .nav-link:hover {
border-bottom: 2px solid var(--bs-primary-bg-subtle);
}

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading