-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
05cdf24
commit a4d0982
Showing
34 changed files
with
911 additions
and
68 deletions.
There are no files selected for viewing
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,13 @@ | ||
tt_content.kennellist { | ||
dataProcessing { | ||
200 = database-query | ||
200 { | ||
table = tx_cpkm_domain_model_kennel | ||
orderBy = k_name | ||
pidInList.data = field : l_page | ||
#where = '({#tx_cpkm_domain_model_pedigree}.{#pid} = ###REC_FIELD_l_page###) AND ({#tx_cpkm_domain_model_pedigree}.{#p_status} = 2) AND ({#tx_cpkm_domain_model_pedigree}.{#p_sex} = 1)' | ||
where = (k_status = 1) AND (k_show = 1) | ||
as = kennels | ||
} | ||
} | ||
} |
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,62 @@ | ||
tt_content.litterlist { | ||
dataProcessing { | ||
200 = database-query | ||
200 { | ||
table = tx_cpkm_domain_model_litter | ||
orderBy = l_date, l_name | ||
pidInList.data = field : l_page | ||
where.data = field:l_type | ||
where.wrap = tx_cpkm_domain_model_litter.l_status = | | ||
as = litters | ||
dataProcessing { | ||
10 = database-query | ||
10 { | ||
table = tx_cpkm_domain_model_kennel | ||
pidInList = 0 | ||
uidInList.data = field : l_kennel | ||
as = kennels | ||
} | ||
20 = database-query | ||
20 { | ||
table = tx_cpkm_domain_model_pedigree | ||
pidInList = 0 | ||
uidInList.data = field : l_father | ||
as = fathers | ||
dataProcessing { | ||
10 = database-query | ||
10 { | ||
table = tx_cpkm_domain_model_kennel | ||
pidInList = 0 | ||
uidInList.data = field : p_kennel | ||
as = fatherskennels | ||
} | ||
} | ||
} | ||
30 = database-query | ||
30 { | ||
table = tx_cpkm_domain_model_pedigree | ||
pidInList = 0 | ||
uidInList.data = field : l_mother | ||
as = mothers | ||
dataProcessing { | ||
10 = database-query | ||
10 { | ||
table = tx_cpkm_domain_model_kennel | ||
pidInList = 0 | ||
uidInList.data = field : p_kennel | ||
as = motherskennels | ||
} | ||
} | ||
} | ||
40 = files | ||
40 { | ||
references.table = tx_cpkm_domain_model_litter | ||
references.fieldName = l_images | ||
sorting = title | ||
sorting.dirction = ascending | ||
as = images | ||
} | ||
} | ||
} | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
ContentBlocks/ContentElements/Kennellist/assets/backend-preview.css
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 @@ | ||
/* Created by Content Blocks */ |
33 changes: 33 additions & 0 deletions
33
ContentBlocks/ContentElements/Kennellist/assets/frontend.css
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,33 @@ | ||
/* Created by Content Blocks */ | ||
|
||
.kennellist { | ||
--_clr-accent: var(--clr-brand--primary); | ||
--_clr-header: var(--clr-bw-090); | ||
container: kennellist / inline-size; | ||
|
||
.kennels { | ||
display: grid; | ||
gap: var(--gutter); | ||
} | ||
|
||
.kennelcard { | ||
display: grid; | ||
gap: var(--gutter); | ||
grid-template-columns: 1fr; | ||
@container kennellist (width > 480px) { | ||
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); | ||
} | ||
border: 1px solid var(--_clr-accent); | ||
} | ||
|
||
.kennelcard > * { | ||
padding: calc(var(--gutter)/2); | ||
} | ||
|
||
.kennelcard--header { | ||
grid-column: 1 / -1; | ||
color: var(--_clr-header); | ||
background-color: var(--_clr-accent); | ||
} | ||
|
||
} |
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 @@ | ||
/* Created by Content Blocks */ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,15 @@ | ||
name: conpassione/kennellist | ||
typeName: kennellist | ||
group: kennel | ||
prefixFields: false | ||
|
||
fields: | ||
- identifier: conpassione/Header | ||
type: Basic | ||
- identifier: l_page | ||
type: Select | ||
renderType: selectSingle | ||
minitems: 1 | ||
maxitems: 1 | ||
foreign_table: pages | ||
foreign_table_where: 'AND pages.module="kennel" ORDER BY pages.title' |
24 changes: 24 additions & 0 deletions
24
ContentBlocks/ContentElements/Kennellist/language/de.labels.xlf
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 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2"> | ||
<file source-language="en" target-language="de" original="Labels.xlf" datatype="plaintext" product-name="conpassione/homepage" date="2024-12-03T23:27:28+01:00"> | ||
<header></header> | ||
<body> | ||
<trans-unit id="description" resname="description"> | ||
<source>List of active Breeders</source> | ||
<target>List der aktiven Zuchter</target> | ||
</trans-unit> | ||
<trans-unit id="header.label" resname="header.label"> | ||
<source>List Title</source> | ||
<target>Listentitel</target> | ||
</trans-unit> | ||
<trans-unit id="l_page.label" resname="l_page.label"> | ||
<source>Kennels from page</source> | ||
<target>Zuchtstätten von Seite</target> | ||
</trans-unit> | ||
<trans-unit id="title" resname="title"> | ||
<source>Breeders List</source> | ||
<target>Züchterliste</target> | ||
</trans-unit> | ||
</body> | ||
</file> | ||
</xliff> |
23 changes: 23 additions & 0 deletions
23
ContentBlocks/ContentElements/Kennellist/language/fr.labels.xlf
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,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2"> | ||
<file source-language="en" target-language="fr" original="" datatype="plaintext" date="2024-12-03T23:27:28+01:00"> | ||
<body> | ||
<trans-unit id="description" resname="description"> | ||
<source>List of active Breeders</source> | ||
<target>List des d'élevage</target> | ||
</trans-unit> | ||
<trans-unit id="header.label" resname="header.label"> | ||
<source>List Title</source> | ||
<target>Titre de la liste</target> | ||
</trans-unit> | ||
<trans-unit id="l_page.label" resname="l_page.label"> | ||
<source>Kennels from page</source> | ||
<target>d'élevages de la page</target> | ||
</trans-unit> | ||
<trans-unit id="title" resname="title"> | ||
<source>Breeders List</source> | ||
<target>Liste des d'élevage</target> | ||
</trans-unit> | ||
</body> | ||
</file> | ||
</xliff> |
23 changes: 23 additions & 0 deletions
23
ContentBlocks/ContentElements/Kennellist/language/it.labels.xlf
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,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2"> | ||
<file source-language="en" target-language="it" original="" datatype="plaintext" date="2024-12-03T23:27:28+01:00"> | ||
<body> | ||
<trans-unit id="description" resname="description"> | ||
<source>List of active Breeders</source> | ||
<target>Lista dei allevatori</target> | ||
</trans-unit> | ||
<trans-unit id="header.label" resname="header.label"> | ||
<source>List Title</source> | ||
<target>Titolo della lista</target> | ||
</trans-unit> | ||
<trans-unit id="l_page.label" resname="l_page.label"> | ||
<source>Breeders from page</source> | ||
<target>Allevatori della pagina</target> | ||
</trans-unit> | ||
<trans-unit id="title" resname="title"> | ||
<source>Breeders List</source> | ||
<target>Lista dei allevatori</target> | ||
</trans-unit> | ||
</body> | ||
</file> | ||
</xliff> |
20 changes: 20 additions & 0 deletions
20
ContentBlocks/ContentElements/Kennellist/language/labels.xlf
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,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2"> | ||
<file source-language="en" original="Labels.xlf" datatype="plaintext" product-name="conpassione/cp-textblock" date="2024-12-03T23:27:28+01:00"> | ||
<header></header> | ||
<body> | ||
<trans-unit id="description" resname="description"> | ||
<source>List of active Breeders</source> | ||
</trans-unit> | ||
<trans-unit id="header.label" resname="header.label"> | ||
<source>List Title</source> | ||
</trans-unit> | ||
<trans-unit id="l_page.label" resname="l_page.label"> | ||
<source>Breeders from page</source> | ||
</trans-unit> | ||
<trans-unit id="title" resname="title"> | ||
<source>Breeders List</source> | ||
</trans-unit> | ||
</body> | ||
</file> | ||
</xliff> |
9 changes: 9 additions & 0 deletions
9
ContentBlocks/ContentElements/Kennellist/templates/backend-preview.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,9 @@ | ||
<html data-namespace-typo3-fluid="true" | ||
xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" | ||
xmlns:cb="http://typo3.org/ns/Contentblocks/ContentBlocks/ViewHelpers"> | ||
|
||
<f:asset.css identifier="cp-kkennellist" href="{cb:assetPath()}/backend-preview.css"/> | ||
|
||
<p>Die aktiven Zuchtstätten von Seite: [{data.l_page.uid}] {data.l_page.title}</p> | ||
|
||
</html> |
50 changes: 50 additions & 0 deletions
50
ContentBlocks/ContentElements/Kennellist/templates/frontend.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,50 @@ | ||
<html data-namespace-typo3-fluid="true" | ||
xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" | ||
xmlns:cb="http://typo3.org/ns/Friendsoftypo3/ContentBlocks/ViewHelpers"> | ||
|
||
<f:asset.css identifier="cpkennelss" href="{cb:assetPath()}/frontend.css" /> | ||
|
||
<div class="kennellist"> | ||
<f:if condition="{data.header}"> | ||
<f:cObject | ||
typoscriptObjectPath="tt_content.header" | ||
data="{data}" | ||
table="tt_content" | ||
/> | ||
</f:if> | ||
<div class="kennels"> | ||
<f:if condition="{kennels}"> | ||
<f:then> | ||
<f:for as="kennel" each="{kennels}" iteration="ikennels"> | ||
<div class="kennelcard" id="kennel{kennel.data.uid}" aria-label="Kennels"> | ||
<h3 class="kennelcard--header h3-font">{kennel.data.k_name}</h3> | ||
<div class="kennelcard--breeder"> | ||
{kennel.data.k_name}<br> | ||
{kennel.data.k_first_name} {kennel.data.k_last_name}<br> | ||
{kennel.data.k_address -> f:format.nl2br()} | ||
</div> | ||
<div class="kennelcard--communication"> | ||
<div class="kennelcard--variety"> | ||
<f:switch expression="{kennel.data.k_variety}"> | ||
<f:case value="2">museau normal</f:case> | ||
<f:case value="3">museau normal</f:case> | ||
<f:case value="4">face rase</f:case> | ||
<f:case value="5">face rase</f:case> | ||
<f:case value="6">museau normal und face rase</f:case> | ||
<f:case value="7">museau normal und face rase</f:case> | ||
<f:defaultCase>not defined</f:defaultCase> | ||
</f:switch> | ||
</div> | ||
<f:link.external uri="tel:{kennel.data.k_mobile}" class="phone-link--icon">{kennel.data.k_mobile}</f:link.external><br> | ||
<f:link.email email="{kennel.data.k_email}" class="mail-link--icon">{kennel.data.k_email}</f:link.email><br> | ||
<f:link.external uri="{kennel.data.k_web}" target="_blank" class="url-link--icon">{kennel.data.k_web}</f:link.external> | ||
</div> | ||
</div> | ||
</f:for> | ||
</f:then> | ||
<f:else> | ||
<p><f:translate key="LLL:EXT:cpkm/Resources/Private/Language/locallang.xlf:kennels.no-kennel"/></p> | ||
</f:else> | ||
</f:if> | ||
</div> | ||
</div> |
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
1 change: 1 addition & 0 deletions
1
ContentBlocks/ContentElements/Litterlist/assets/backend-preview.css
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 @@ | ||
/* Created by Content Blocks */ |
55 changes: 55 additions & 0 deletions
55
ContentBlocks/ContentElements/Litterlist/assets/frontend.css
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,55 @@ | ||
/* Created by Content Blocks */ | ||
|
||
.litterlist { | ||
--_clr-accent: var(--clr-brand--primary); | ||
--_clr-header: var(--clr-bw-090); | ||
container: litterlist / inline-size; | ||
|
||
.litters { | ||
display: grid; | ||
gap: var(--gutter); | ||
} | ||
|
||
.littercard { | ||
display: grid; | ||
gap: var(--gutter); | ||
grid-template-columns: 1fr; | ||
@container litterlist (width > 480px) { | ||
grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); | ||
} | ||
border: 1px solid var(--_clr-accent); | ||
} | ||
|
||
.littercard > *:not(.littercard--images) { | ||
padding: calc(var(--gutter)/2); | ||
} | ||
|
||
.littercard--header { | ||
grid-column: 1 / -1; | ||
color: var(--_clr-header); | ||
background-color: var(--_clr-accent); | ||
@container litterlist (width > 480px) { | ||
display: grid; | ||
grid-auto-flow: column; | ||
gap: var(--gutter); | ||
justify-content: space-between; | ||
} | ||
} | ||
.littercard--parents > div { | ||
margin-block-end: var(--gutter); | ||
} | ||
|
||
.littercard--images { | ||
grid-column: 1 / -1; | ||
.gallery { | ||
gap: 0; | ||
grid-template-columns: 1fr; | ||
figure { | ||
max-width: 100%; | ||
} | ||
@container litterlist (width > 480px) { | ||
grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); | ||
} | ||
} | ||
} | ||
} |
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 @@ | ||
/* Created by Content Blocks */ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,23 @@ | ||
name: conpassione/litterlist | ||
typeName: litterlist | ||
group: kennel | ||
prefixFields: false | ||
|
||
fields: | ||
- identifier: conpassione/Header | ||
type: Basic | ||
- identifier: l_type | ||
type: Radio | ||
default: 1 | ||
items: | ||
- label: 'Deckmeldung' | ||
value: 1 | ||
- label: 'Wurfmeldung' | ||
value: 2 | ||
- identifier: l_page | ||
type: Select | ||
renderType: selectSingle | ||
minitems: 1 | ||
maxitems: 1 | ||
foreign_table: pages | ||
foreign_table_where: 'AND pages.module="litter" ORDER BY pages.title' |
Oops, something went wrong.