Hi,
Ich befinde mich im header und möchte ein Element in dem Fall ein
Menü-Flyout auf dem Dynamic Cache nehmen!
Also ändere ich den Eintrag:
[{include file=“widget/header/flyout.tpl”}]
in
[{oxid_include_dynamic file=“widget/header/flyout.tpl”}]
Soweit so gut … Der Cache hat nun einen Dynamic Eintrag in im Cache Objekt.
Problem:
Lade ich die Seite neu, dann knallt es!
Im Layout von widget/header/flyout.tpl
werden includes gesetzt, welche eine CatId setzen:
[{include file=“widget/header/brandlist.tpl” categoryName=“brands” categoryId=$sCatMarken}]
Und im File widget/header/brandlist.tpl wird der Param categoryId ausgewertet:
[{assign var=“xccs” value=$oxcmp_categories->offsetGet($categoryId)}]
Im Error Log sehe ich:
PHP Fatal error: Call to a member function offsetGet() on null
Wieso ist $oxcmp_categories null ?? Und das nur, wenn ich zuvor dass
Flyout mit oxid_include_dynamic, statt include einbinde??
Ich verstehe das Problem nicht! - Hat Jemand eine IDEE? Wäre super
super cool!