Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update demo theme for Typo3 v11 and v12 without fixing many issues #30

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
3 changes: 3 additions & 0 deletions Configuration/TCA/Overrides/sys_template.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile("presentation_package", 'Configuration/TypoScript/', 'Kitodo.Presentation Package');
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
lib.dynamicContent = COA
lib.dynamicContent {
10 = LOAD_REGISTER
10.colPos.cObject = TEXT
10.colPos.cObject {
field = colPos
ifEmpty.cObject = TEXT
ifEmpty.cObject {
value.current = 1
ifEmpty = 0
}
}
20 = CONTENT
20 {
table = tt_content
select {
orderBy = sorting
where = {#colPos}={register:colPos}
where.insertData = 1
}
}
90 = RESTORE_REGISTER
}
Original file line number Diff line number Diff line change
@@ -1,20 +1,27 @@
config {

# add debug information to TypoScript code
debug = 1

# show stacktrace when errors
contentObjectExceptionHandler = 0

# sets the template for page rendering
pageRendererTemplateFile = {$resDir}/Resources/Private/Templates/PageRenderer.html

# the string that is prepended to all relative links that TYPO3 generates
absRefPrefix = /
tx_realurl_enable = 1
prefixLocalAnchors = 1

# tx_realurl_enable = 1

disablePrefixComment = 1

spamProtectEmailAddresses = 1
spamProtectEmailAddresses_atSubst = (at)

compressCss = 1
concatenateCss = 1
concatenateCss = 0

compressJs = 1
concatenateJs = 1

contentObjectExceptionHandler = 0
concatenateJs = 0
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ page.10 {
#layoutRootPath = {$resDir}/Resources/Private/Layouts

layoutRootPaths {
10 = {$resDir}/Resources/Private/Layouts
0 = {$resDir}/Resources/Private/Layouts
}
partialRootPaths {
10 = {$resDir}/Resources/Private/Partials
0 = {$resDir}/Resources/Private/Partials
}
templateRootPaths {
10 = {$resDir}/Resources/Private/Templates
0 = {$resDir}/Resources/Private/Templates
}

variables {
Expand Down Expand Up @@ -97,8 +97,6 @@ page.10 {
required = 1
}
}

#file = {$resDir}/Resources/Private/Templates/DefaultTemplate.html
}

page.10.file.stdWrap.cObject = CASE
Expand Down
8 changes: 0 additions & 8 deletions Configuration/TypoScript/constants.txt

This file was deleted.

15 changes: 15 additions & 0 deletions Configuration/TypoScript/constants.typoscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@import 'EXT:fluid_styled_content/Configuration/TypoScript/constants.typoscript'

# prefix of this extension
resDir = EXT:presentation_package

## Default-Werte fuer meta-tags
defaultDescription = Das ist meine erste Distribution

# configure page id (pid) of tenant folder
plugin.tx_dlf {
persistence {
# cat=plugin.tx_dlf/100/a; type=int+; label=Default storage PID
storagePid = 2
}
}
3 changes: 0 additions & 3 deletions Configuration/TypoScript/setup.txt

This file was deleted.

11 changes: 11 additions & 0 deletions Configuration/TypoScript/setup.typoscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Import the default setup of EXT:fluid_styled_content
@import 'EXT:fluid_styled_content/Configuration/TypoScript/setup.typoscript'

# Import the default CSS of EXT:fluid_styled_content
@import 'EXT:fluid_styled_content/Configuration/TypoScript/Styling/setup.typoscript'

# Import kitodo-presentation typoscript
@import 'EXT:dlf/Configuration/TypoScript/setup.typoscript'

# Import typoscript files sorted by filename
@import 'EXT:presentation_package/Configuration/TypoScript/Library/*.typoscript'
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
options.pageTree.showPageIdWithTitle = 1
options.clearCache.system = 1
options.clearCache.all = 1
4 changes: 4 additions & 0 deletions Resources/Private/Layouts/DefaultLayout.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

<f:asset.script identifier="js-resource-path-inline-script" priority="true">
const EXT_PRESENTATION_PACKAGE_RESOURCE_PATH = "{f:uri.resource(path:'EXT:presentation_package/Resources/Public')}";
</f:asset.script>

<f:render partial="Header" arguments="{_all}"/>

<f:render section="Main" />
Expand Down
10 changes: 3 additions & 7 deletions Resources/Private/Partials/Header.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,23 @@
<section class="portal-header">

<article class="meta-actions">
<a href="" id="backlink" title="go back" style="display:none;"><img src="../../typo3conf/ext/presentation_package/Resources/Public/Images/icon-goback.svg" alt="go back" /></a>
<a href="" id="backlink" title="go back" style="display:none;"><img src="{f:uri.resource(path:'EXT:presentation_package/Resources/Public/Images/icon-goback.svg')}" alt="go back" /></a>
<span class="meta-is-version">DEMO</span>
</article>

<article id="portal-logo">
<a href="" id="kitodo-logo">
<img src="../../typo3conf/ext/presentation_package/Resources/Public/Images//kitodo-logo.svg" alt="Kitodo.Production">
<img src="{f:uri.resource(path:'EXT:presentation_package/Resources/Public/Images/kitodo-logo.svg')}">
</a>
<a href="" id="kitodo-icon">
<img src="../../typo3conf/ext/presentation_package/Resources/Public/Images//kitodo-icon.svg" alt="Kitodo.Production">
<img src="{f:uri.resource(path:'EXT:presentation_package/Resources/Public/Images/kitodo-icon.svg')}" alt="Kitodo.Production">
</a>
</article>

<article class="meta-navigation">

<f:format.raw>{contentBasket}</f:format.raw>

<!--<a href="" title="favorites">-->
<!--<img src="../../typo3conf/ext/presentation_package/Resources/Public/Images//icon-star.svg" alt="favorites">-->
<!--<span class="meta-batchcount">44</span>-->
<!--</a>-->
</article>

</section>
Expand Down
16 changes: 10 additions & 6 deletions Resources/Public/Css/main.css
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@

.tx-dlf-listview-list ol {
.tx-dlf-abstracts ol {
display: none;
}

.tx-dlf-listview-list li .show-volumes a.show-volumes-expand {
.tx-dlf-abstracts li .show-volumes a.show-volumes-expand {
background: url(../Images/icon-arrow-down.svg) no-repeat left center #999;
}

.tx-dlf-listview-list li .show-volumes a.show-volumes-expand:hover {
.tx-dlf-abstracts li .show-volumes a.show-volumes-expand:hover {
background: url(../Images/icon-arrow-down.svg) no-repeat left center #005182;
}

.tx-dlf-listview-list li .show-volumes a.show-volumes-expand.down {
.tx-dlf-abstracts li .show-volumes a.show-volumes-expand.down {
background: url(../Images/icon-arrow-up.svg) no-repeat left center #0071bc;
}

.tx-dlf-listview-list li .show-volumes a.show-volumes-expand.down:hover {
.tx-dlf-abstracts li .show-volumes a.show-volumes-expand.down:hover {
background: url(../Images/icon-arrow-up.svg) no-repeat left center #005182;
}

Expand Down Expand Up @@ -80,7 +80,7 @@ li.tx-dlf-navigation-pageselect label {
}

.tx-dlf-listview img {
display: none;
display: block;
}

.show-volumes {
Expand Down Expand Up @@ -281,6 +281,10 @@ div#tx-dlf-fulltextselection {

}

#tx-dlf-map {
height: 1000px;
}

#ov_map {
max-height: 200px;
}
Expand Down
Loading