Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

Releases: mirko-pagliai/me-cms

2.27.2

07 Oct 15:25
4c505de
Compare
Choose a tag to compare
  • PostsTable::getRelated() returns a Collection of entities;
  • GetPreviewsFromTextTrait::getPreviews() returns a Collection of entities;
  • added url virtual field for Page, PagesCategory, Photo, PhotosAlbum,
    Post, PostsCategory and Tag entities;
  • virtual fields throw an exception if the necessary properties are missing;
  • wide simplification of many template files;
  • uses dereuromark/cakephp-feed to generate RSS;
  • updated for me-tools 2.18.14.

2.27.1

02 Oct 08:53
a6b4c50
Compare
Choose a tag to compare
  • fixed a serious bug for beforeFilter() methods. The bug prevented some
    redirects;
  • added AppController::getPaging() method.
  • added \MeCms\Controller\AppController::__get() method. In addition to the
    method provided by CakePHP, it can also auto-load the associated tables;
  • added \MeCms\ORM\Query class. The tables that extend
    \MeCms\Model\Table\AppModel will use this query class as default. This
    class overrides the cache() method and uses the getCacheName() table
    method to get the default name of the cache config to use, if that method
    exists.

2.27.0

25 Sep 11:59
f9fdc09
Compare
Choose a tag to compare
  • requires at least PHP 7.0, phpunit 6.0 and CakePHP 3.8. Added tests
    for lowest dependencies;
  • all the code has been made compatible with Postgres and Sqlite drivers.
    The fixtures code has been simplified. Added tests for Postgres driver.
  • pages and posts can display the last modified date (as default). Added entries
    in the configuration file;
  • added \MeCms\Controller\Admin\AppController class. All admin controllers now
    extend this class;
  • the MenuBuilderHelper::renderAsCollapse() method takes the $idContainer
    parameter and is now able to generate all the necessary code without
    javascript code. All methods from MenuHelper now return an array with a
    fourth value (an array with the controllers handled by that menu);
  • largely simplified the code for PostsWidgetsCell::months() method;
  • fixed bug for PhotosAlbumsController::index(). Now the album photos are
    randomly ordered after being retrieved from the cache;
  • for StaticPage class, getSlug() is now public, title() becomes
    getTitle(), getAllPaths() becomes as getPaths() and is now public;
  • javascript functions are now "camelCase": tag_exist() becomes tagExists(),
    add_tags() becomes addTags(), remove_tag() becomes removeTag() and
    update_output_text() becomes updateOutputText();
  • many small fixes;
  • updated for me-tools 2.18.13.

2.26.7

22 Aug 12:18
7f597f7
Compare
Choose a tag to compare
  • added a basic style sheet for printing;
  • fixed bug for some no existing photos;
  • improved code for PostsTable::queryForRelated() method;
  • add and edit template files for Posts, PostsCategories, Pages and
    PagesCategories have been merged into the form templates respectively;
  • added admin/priority-badge template element;
  • updated for php-tools 1.2.8 and me-tools 2.18.11.

2.26.6

29 Jul 10:26
401c1c2
Compare
Choose a tag to compare
  • added AppTable::deleteAll() method. This automatically clears the cache
    associated with the table, when possible;
  • added AppTable::clearCache();
  • fixed the StaticPage utility. The getPath() method becomes getPaths() and
    now returns an array with all possible paths, even if they do not exist;
  • uses getRequest()/setRequest() methods instead of $request property
    whenever possible;
  • removed useless AppController::isOffline() method;
  • removed AppTable::beforeSave(), added AppTable::beforeMarshal();
  • StaticPage::getAppPath() and StaticPage::getPluginPath() been replaced by
    the StaticPage::getPath() method;
  • improved and fixed the AuthHelper. Now it is loaded from the view (instead of
    from the controller) requires an array with the user key as configuration;
  • improved and fixed the KcFinderComponent;
  • improved validation rules. Removed some useless validation methods;
  • uses league/commonmark package instead of gourmet/common-mark;
  • added MeCms\AuthTrait. It provides some methods for classes that need to
    verify the data of the logged in user;
  • added BannerAndPhotoValidator, PageAndPostValidator and CategoryValidator
    abstract classes;
  • updated for php-tools 1.2.7.

2.26.5

17 Jun 09:20
1657252
Compare
Choose a tag to compare
  • it uses the cakephp-stop-spam package to detect spammers;
  • the ContactUs form checks if the email address used was reported as a spammer;
  • AppController::isBanned() method renamed as isSpammer();
  • updated for me-tools 2.18.7;
  • added MeCms\ORM\PostAndPageEntity abstract class;
  • added MeCms\TestSuite\BannersAndPhotosAdminControllerTestCase abstract class;
  • PostsAndPagesTables class moved to MeCms\ORM namespace;
  • removed useless ControllerTestCase::assertHasComponent() method;
  • updated for php-tools 1.2.5.

2.26.4

09 Apr 14:52
df668ad
Compare
Choose a tag to compare
  • fixed bug for login cookies;
  • fixed a little bug for pages slug;
  • improved and updated cookie writing/reading;
  • ControllerTestCase::assertHasComponent() can take an array as argument;
  • it suggest the mirko-pagliai/me-cms-link-scanner package;
  • updated for php-tools 1.2.

2.26.3

12 Feb 13:52
e8cebe9
Compare
Choose a tag to compare
  • added the Disqus comment system for pages and posts. By default, comments are
    enabled for posts;
  • added enable_comments field to Pages and Posts tables.
    Added VersionUpdatesCommand::addEnableCommentsField() method;
  • fixed bug for static pages with locales.

2.26.2

28 Jan 13:28
14b7a5e
Compare
Choose a tag to compare
  • it is now possible to disable the sitemap for some content, using the MeCms
    configuration file;
  • fixed bug for tables width on posts and pages;
  • added VersionUpdatesCommand::deleteOldDirectories() method;
  • updated for php-tools 1.1.12.

2.26.1

31 Dec 08:45
5e2d9bf
Compare
Choose a tag to compare
  • the length of the tags has been increased to 40 characters;
  • added VersionUpdatesCommand, that performs some updates to the database or
    files needed for versioning. RunAllCommand executes this command;
  • improved tag validation for posts. Now errors on multiple tags are shown at the
    same time and the tag name that generated the error is shown;
  • PostValidator::validTagsLength() and PostValidator::validTagsChars() have
    been replaced with the PostValidator::validTags() method. TagValidatorTrait
    has been removed and its methods has been moved into TagValidor class;
  • fixed a bug when loading plugins, when the Asset plugin does not exist.