Spress 2.1.2 released

Hello. A new maintenance release of Spress has been released with some bug fixes.

The complete changelog:

  • New Two new methods have been added to StringWrapper class: lower and upper for cingonvert a given string to lower-case and upper-case respectively using UTF-8 as encoding.
  • Fixed Bug #80 has been fixed: "Composer install fails if no namespace is specified in new plugin". See PR #81.
  • Fixed Bug #82 has been fixed: "Substr --- in yaml string cause builder crash".
  • Fixed Bug #83 has been fixed: "Same tags on different languages cause builder crash".
Read more

Spress 2.1.1 released

Hi Spress folks! The first maintenance release of Spress 2.1 has been released with two bug fixes.

The complete changelog:

  • Fixed Bug #78 has been fixed: "/:basename permalink variable contains .html when using *.html.twig". Related with feature #73.
  • Fixed Bug #79 has been fixed: "Error loading plugin's dependencies with -s option at site:build command".
  • Improved Clarified the message when site:build command is invoked against a non Spress site folder.
Read more

Spress 2.1.0 released

Hi community. To make your weekend all the better, we have just released Spress 2.1.0 with many features and improvements.

Key features

  • New Sorted items in collections. Feature thanks to jjk-jacky.
  • New Attributes referring to the previous and next items in a sorted collection. Feature thanks to jjk-jacky.
  • New Calling an existing command in command plugins.
  • New Support for extending Spress with Twig tags. Contributed by jjk-jacky in #65.
  • New Support .twig extention. This feature lets you work more appropriately with pages using IDEs such as PHPStorm. Feature thanks to peterfox.
  • Improved Improved permalinks customizations. Contributed by jjk-jacky in #65.
  • Fixed Fixed the path available at page.path variable. Prior to this version, this variable contains the relative path to src/content/ but with the filename extension changed by the Converter. Now, the original filename extension isn't altered.
Read more

A site variable with items matching a criteria

There are certain situations in which it is necessary to have available a site variable (those that are accessible using site.xxx) with the items that matching certain criteria. In this post, I will explain how to expose a new site variable with items that contains an categories attribute.

Read more

Spress 2.0.2 released

A new maintenance release of Spress 2.0 is out with a fix for an issue with the content retrieved by getContent method of after_render_page event.

The complete changelog:

  • New PluginTester class has been added to the core for testing plugins easily.
  • Fixed Fixed an issue with the content retrieved by after_render_page event.
  • Fixed A constant name of ItemInterface has been changed: SNAPSHOT_AFTER_PAGE -> SNAPSHOT_AFTER_RENDER_PAGE.
Read more