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

Upgrade from cjw_newsletter 5.1 to 5.2

5.2.0 adds layout editions: an edition composed of blocks of a mail layout of Exponential Layouts, rendered as mail-safe HTML and text inside the list's skin (layout-editions.md). This page lists what an installation of…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/ext/cjw_newsletter/upgrade-5.2.md

On this page

Upgrade from cjw_newsletter 5.1 to 5.2

5.2.0 adds layout editions: an edition composed of blocks of a mail layout of Exponential Layouts, rendered as mail-safe HTML and text inside the list's skin (layout-editions.md). This page lists what an installation of 5.1.x has to do.

1. Requirements

  • cjw_newsletter 5.1.0. The database update starts from the 5.1.0 schema.
  • explayouts and explayouts_ui_api with mail layouts are optional: without them nothing changes and no layout edition is offered.

2. Back up the database

The update adds one table and changes no data.

3. The database update

One file per database engine. Run it once: it has no IF NOT EXISTS and fails on a database that has the table already. The package's command finds and runs the right file:

php extension/cjw_newsletter/bin/php/dbschema.php -s <admin siteaccess> --update --from=5.1.0          # what would run
php extension/cjw_newsletter/bin/php/dbschema.php -s <admin siteaccess> --update --from=5.1.0 --apply
EngineFile
MySQL / MariaDBupdate/database/mysql/5.2/dbupdate-5.1.0-to-5.2.0.sql
PostgreSQLupdate/database/postgresql/5.2/dbupdate-5.1.0-to-5.2.0.sql
SQLiteupdate/database/sqlite/5.2/dbupdate-5.1.0-to-5.2.0.sql
Oracleupdate/database/oracle/5.2/dbupdate-5.1.0-to-5.2.0.sql
SQL Serverupdate/database/sqlserver/5.2/dbupdate-5.1.0-to-5.2.0.sql
MongoDBupdate/database/mongodb/5.2/dbupdate-5.1.0-to-5.2.0.json

What it does: new table cjwnl_edition_layout (id key, contentobject_id unique, layout_id, created, creator_id, index on layout_id): one row per edition object that is composed of blocks.

4. Caches

Clear the INI and template caches (php bin/php/ezcache.php --clear-all): the package adds settings/explayouts.ini.append.php (the mail layout types and the blocks offered for mail) and new templates.

5. Your own skins

A skin of your own can frame a layout edition only with outputformat/layout_html.tpl and layout_text.tpl (rendering.md); until it has them it is not offered for layout editions. Classic editions are not affected.

Rollback

An older package ignores the table. Editions composed of blocks are then rendered by the skin's classic templates (their title and description only, as they have no articles of their own), so do not send them with the older package. The mail layouts stay in explayouts.

Something wrong on this page? Report an error

Documentation license

This page is part of the documentation of the extension cjw_newsletter and is distributed under the license of that extension.