Zum Hauptinhalt gehen

How to centralize a navigation function to be used by multiple page templates

Kommentare

1 Kommentar

  • Zendesk API User
    Author: tomator - 3/8/2011 15:11

    Instead of calling the $CMS_VALUE()$ inside the format template, add the attribute 'context="PAGE"' to your header function and add the corresponding $CMS_RENDER()$ statement to the output channel of your page template (as early as possible, ideally directly after the header declaration). The results of the header function are then set to your page context and can be individually called just as if the functions were defined in the header of the page template itself.

    You can add several functions to one format template this way.

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.