WARN-Meldung in Generierungsprozess #cell.align -> null
Author: pschulz
Publication Date: 1/26/2012 12:24
Hi,
mir ist aufgefallen, dass im Generierungslog etliche Male folgende Warnung kommt:
26.01.2012 13:08:22.454 WARN ($CMS_VALUE(#cell.align)$ at 11, 44): Replacing null value with empty default!
inside of: Template 'Standard' (id=226915)
inside of: $CMS_RENDER(template:"WEBeditInplaceBody", name:"content_center")$ - at 61, 3
inside of: Format Template 'WEBeditInplaceBody' (id=226924)
inside of: $CMS_TRIM(level:4)$ - at 1, 34
inside of: $CMS_TRIM(level:0)$ - at 15, 5
inside of: $CMS_VALUE(#global.page.body(name))$ - at 15, 24
inside of: Template 'table' (id=226983)
inside of: $CMS_TRIM(level:2, char:)$ - at 15, 1
inside of: $CMS_VALUE(fr_st_table)$ - at 18, 1
inside of: $CMS_VALUE(#content)$ - at 6, 55
inside of: Format Template 'tr' (id=226941)
inside of: $CMS_VALUE(#content)$ - at 1, 5
inside of: $CMS_VALUE(#cell.align)$ - at 11, 44
Die Standard-Formatvorlage "Tabellenzelle" sieht allerdings so aus:
$CMS_VALUE(if(!#cell.align.isEmpty, " align='" + if(#cell.align == "block", "justify", #cell.align) + "'"))$
Von wo kommt jetzt diese Warnung?
Gruß
Peter
Tags: generation, tablecell
-
Author: hoebbel - 2/2/2012 14:31
Hallo zusammen,
Ursache war, dass hier an der falschen Stelle gesucht wurde.
Im Stacktrace sieht man, dass gar nicht in die Formatvorlage td gesprungen wird:
26.01.2012 13:08:22.454 WARN ($CMS_VALUE(#cell.align)$ at 11, 44): Replacing null value with empty default!
inside of: Template 'Standard' (id=226915)
inside of: $CMS_RENDER(template:"WEBeditInplaceBody", name:"content_center")$ - at 61, 3
inside of: Format Template 'WEBeditInplaceBody' (id=226924)
inside of: $CMS_TRIM(level:4)$ - at 1, 34
inside of: $CMS_TRIM(level:0)$ - at 15, 5
inside of: $CMS_VALUE(#global.page.body(name))$ - at 15, 24
inside of: Template 'table' (id=226983)
inside of: $CMS_TRIM(level:2, char:)$ - at 15, 1
inside of: $CMS_VALUE(fr_st_table)$ - at 18, 1
inside of: $CMS_VALUE(#content)$ - at 6, 55
inside of: Format Template 'tr' (id=226941)
inside of: $CMS_VALUE(#content)$ - at 1, 5
inside of: $CMS_VALUE(#cell.align)$ - at 11, 44Ursache des Problems war, dass die Tabelle über eien Table-Funktion ausgegeben wurde und nicht über die Formatvorlagen.
Viele Grüsse aus Dortmund,
Holger Höbbel
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar