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

Deprecating a setting or a template

Step by step - rename a theme setting while still reading the old name, replace a template while keeping an include of the old one, and remove both later - with the changelog entries for each step.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/designers/lifecycle/deprecating-a-setting-or-template.md

On this page

Deprecating a setting or a template

This page is for designers following their deprecation policy.

A setting

Example: mytheme.ini [Front] Teasers becomes [FrontPage] TeaserCount.

  1. Add the new setting with its default to the theme's settings file.

  2. Read the new one first, then the old one, in templates:

    {def $count = ezini( 'FrontPage', 'TeaserCount', 'mytheme.ini' )}
    {if ezini_hasvariable( 'Front', 'Teasers', 'mytheme.ini' )}
        {set $count = ezini( 'Front', 'Teasers', 'mytheme.ini' )}
    {/if}

    (Order the reads so a user's override of the old name still wins until they switch.)

  3. Changelog: Renamed: mytheme.ini [Front] Teasers to [FrontPage] TeaserCount; the old name is read until 2.0.0.

  4. In the announced release, remove the old read: Removed: mytheme.ini [Front] Teasers (use [FrontPage] TeaserCount).

A template

Example: parts/teaser.tpl is replaced by parts/card.tpl.

  1. Create parts/card.tpl.

  2. Make parts/teaser.tpl a one-line include of the new one, with a comment:

    {* Deprecated since 1.4.0, removed in 2.0.0: include design:parts/card.tpl instead. *}
    {include uri='design:parts/card.tpl' node=$node}
  3. Changelog: Added: parts/card.tpl and Updated: parts/teaser.tpl is deprecated, use parts/card.tpl.

  4. Remove parts/teaser.tpl in the announced release, with the upgrade step for users who override it.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x