Netzkompetenz

Blog mit Snippets, Tipps und Tricks rund um Webprogrammierung der Taywa aus Zürich

TYPO3 Upgrade von Version 8 LTS auf Version 9 LTS

Vorbereitung

Extension

Wenn eine Extension kompatibel zu Version 8 und 9 ist, kann man diese noch in der Version 8 auf die neuste Version updaten. Meistens wähle ich aber ein anderes Vorgehen und deaktiviere alle Extension, indem ich diese in einen anderen Ordner verschiebe.

cd typo3conf
mkdir ext_off
mv ext/* ext_off

 

 

Login über  typo3/install

 

Nach dem neu verlinken der 9 LTS Source erfolgt das Einloggen über das gewohnte /typo3/install. Die Upgradeprozedur ist ähnlich wie bei vorhergenden Versionen.

Anpassungen im Typoscript

Vergleiche können neu mit symfony expression language geschrieben werden.

Quellen:

https://docs.typo3.org/typo3cms/TyposcriptReference/latest/Conditions/Reference.html

https://docs.typo3.org/typo3cms/extensions/core/Changelog/9.4/Feature-85828-MoveSymfonyExpressionLanguageHandlingIntoEXTcore.html

[globalVar = LIT:1 = {$taywa.config.footer.use}]

Neu:

[1 == {$taywa.config.footer.use}]

per sed:

sed -i 's/globalVar = LIT:1 =/1==/' *.ts
sed -i 's/globalVar = GP:L >/1==/' *.ts

 

Include kann man nun ersetzen mit @import

 

<INCLUDE_TYPOSCRIPT: source="FILE:fileadmin/html/mainmenu_typoscript.txt">

zu:

@import "fileadmin/html/mainmenu_typoscript.txt"

sed befehl für das

sed -i 's/<INCLUDE_TYPOSCRIPT: source="FILE:/@import "/g' *.ts
sed -i 's/.ts\">/.ts\"/g' *.ts

Anpassungen im css von css styled content zu fluid styled content

sed -i 's/.t3ce/.frame/' *.css
sed -i 's/textpic-cont/frame-type-textpic/' *.css

 

Anpassungen für Fluid Styled Content

root_constants:

styles.templates {
 templateRootPath = fileadmin/Resources/Private/FluidStyledContent/Templates/
 layoutRootPath = fileadmin/Resources/Private/FluidStyledContent/Layouts/
 partialRootPath = fileadmin/Resources/Private/FluidStyledContent/Partials/
}

und

mkdir -p fileadmin/Resources/Private/FluidStyledContent/Templates
mkdir fileadmin/Resources/Private/FluidStyledContent/Layouts
mkdir fileadmin/Resources/Private/FluidStyledContent/Partials

 

kopiere Layout

cp -v typo3/sysext/fluid_styled_content/Resources/Private/Layouts/Default.html fileadmin/Resources/Private/FluidStyledContent/Layouts/

 

 

sed -i 's/.csc-textpic-image /.image /' *.css

 

Pop up, früher im Root Setup

Neu in den Constants

styles.content.image{
	maxW = 1200m
	maxWInText = 600
	columnSpacing = 30
	textMargin = 60
	linkWrap{
		lightboxEnabled = 1
		width = 1280m
		height = 900m
	}
}

 

 

tt_content.image.20.1.imageLinkWrap {
	width = 1280m
	height = 900m

	# Bildlink Grossansicht für JavaScript
	JSwindow = 0
	directImageLink = 1
	linkParams.ATagParams.dataWrap = class="lightbox" rel="lightbox{field:uid}"
}

 

Für unsere Installation relevante Änderungen:

cd /Resources/Private/Typoscripts/
mv root_config.ts page_config.ts
UPDATE pages SET TSconfig = "@import 'fileadmin/Resources/Private/Typoscripts/page_config.ts'" WHERE TSconfig = '<INCLUDE_TYPOSCRIPT:source=\"FILE:fileadmin/Resources/Private/Typoscripts/root_config.ts\">'

 

Usergruppen migrieren

fe_groups auf pages

SELECT DISTINCT(fe_group), count(*) FROM `pages` WHERE hidden = 0 AND deleted = 0  GROUP BY fe_group

 

 

 

css_styled_content wurde entfernt und fluid_styled_content sollte ein drop in replacement sein:

Breaking-80876-RemoveSystemExtensionCss_styled_content.html

Noch älter? Dann shilft vielleicht dies: Migration von v7 auf v8

Autor: am
Themen: TYPO3 8 LTS / TYPO3 9 LTS / TYPO3 Migration / TYPO3 Upgrade
  1. Danke für den Beitrag. Im Idealfall beauftrage ich für die Websiteprogrammierung einen Profi wie eine Internetagentur, der spezialisiert auf Webdesign – speziell Typo3 ist.

    Kommentar by Kreuzer — 30. September 2023 @ 12:39

TrackBack URL

Hinterlasse einen Kommentar, wir freuen uns über jedes Feedback.