[TYPO3-german] richtiger CType

Birgit lists at berlin-typo3.de
Wed Jul 11 10:18:14 CEST 2018


Hallo Thilo,

UPDATE tt_content
SET CType = 'textmedia', image = 0, assets = 1
WHERE CType = ‚textpic'
# und falls du erst ein Element testen willst:
AND uid = 45419

UPDATE sys_file_reference
SET fieldname = 'assets'
WHERE tablenames = 'tt_content'
AND fieldname = ‚image'
# und falls du erst ein Element testen willst:
AND uid_foreign = 45419

Viele Grüße
Birgit



> Am 11.07.2018 um 09:49 schrieb Thilo Ratnaweera <thilo.ratnaweera at netbrothers.de>:
> 
> Hallo ebenso in die Runde,
> 
> und danke, Birgit, für diese wichtige Info! So konnte ich aus einer
> Kombination aus fluid_styled_content und einer Eigenentwicklung eine aus
> 4.5-er-Zeiten migrierte TYPO-Instanz ganz ordentlich zum Laufen kriegen.
> 
> Was mich nun aber wurmt: Ich habe alte "textpic"-Datensätze (deren
> Bilder nicht angezeigt werden), aber ich bin mit der Instanz schon auf
> TYPO3 8.7.16. Das bedeutet, dass mir der Migrationsassistent (-->
> "textmedia") nicht mehr angeboten wird. Wenn ich mir den SQL-Code aus
> dem Assistenten rauskopiere und direkt in der Datenbank anwende, komme
> ich auch nicht zum Erfolg.
> 
> Der SQL-Befehl sah so aus:
> 
> UPDATE
> tt_content LEFT JOIN sys_file_reference
> ON sys_file_reference.uid_foreign = tt_content.uid
> AND sys_file_reference.tablenames = "tt_content"
> AND sys_file_reference.fieldname = "image"
> 
> SET
> tt_content.CType = "textmedia",
> tt_content.media = image,
> tt_content.image = "",
> sys_file_reference.fieldname = "media"
> 
> WHERE
> tt_content.CType = "textpic" OR tt_content.CType = "image"
> 
> Habt Ihr eine Idee, wie ich in TYPO3 8 auf saubere Art alte CTypes migriere?
> 
> Danke + Grüße
> Thilo
> 
> Am 12.09.2017 um 13:32 schrieb Birgit:
>> Hallo in die Runde,
>> 
>> 
>> fluid_styled_content in TYPO3 8:
>> 
>> textpic verwendet – wie in css_styled_content –  tt_content.image
>> textmedia verwendet – wie fluid_styled_content in TYPO3 7 – tt_content.assets
>> 
>> 
>> 
>> Viele Grüße Birgit
>> 
>> 
>> 
> 
> -- 
> NetBrothers GmbH
> Straßmannstraße 32
> 10249 Berlin
> 
> +49-30-49854240
> www.netbrothers.de
> 
> Geschäftsführer: Thilo Ratnaweera, Stefan Wessel
> Berlin-Charlottenburg HRB 158821 B | USt-IdNr.: DE 295298958
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german



More information about the TYPO3-german mailing list