Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,155 of 9,155 pages
About the help in other languages
All help pages

Titel: Keine Variable $node mehr im Pagelayout

Die globale Variable $node gab es im Pagelayout-Template nur, wenn ein anderes Modul sie vor dem Abruf des Pagelayouts gesetzt hatte und der Ansichtscache ausgeschaltet war. Damit sie künftig keine Verwirrung mehr…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/features/3.9/no_more_node_in_pagelayout.txt

This page is a translation. Read the English original

*Titel: Keine Variable $node mehr im Pagelayout

*Dokumentation:
Die globale Variable $node gab es im Pagelayout-Template nur, wenn ein anderes Modul sie vor dem
Abruf des Pagelayouts gesetzt hatte und der Ansichtscache ausgeschaltet war. Damit sie künftig
keine Verwirrung mehr stiftet, wurde sie ganz aus dem Pagelayout entfernt.
Den aktuell bearbeiteten Knoten ruft man im Pagelayout-Template über $module_result.node_id ab.
Oder Sie übergeben jede benötigte Knoten-ID aus Ihrem eigenen Modul über das Array
'module_result' an das Pagelayout, wie im folgenden Beispiel:

==============================
//// your_module.php file
...
$Result['some_node_id'] = $anyNodeIdYouNeed;
...

===============================
//// pagelayout.tpl file
...
{def $somenode = fetch( content, node, hash( node_id, $module_result.some_node_id ) )}
    ...
    {$somenode}
    ...

Something wrong on this page? Report an error

Documentation license

This page was inherited from the documentation of the original software. It is not covered by the GNU Free Documentation License; it is distributed under the GNU General Public License, version 2.

Copyright (C) 1999 - 2014 eZ Systems AS and contributors