This repository has been archived by the owner on Dec 28, 2023. It is now read-only.
Releases: mirko-pagliai/me-cms
Releases · mirko-pagliai/me-cms
2.27.2
PostsTable::getRelated()
returns aCollection
of entities;GetPreviewsFromTextTrait::getPreviews()
returns aCollection
of entities;- added
url
virtual field forPage
,PagesCategory
,Photo
,PhotosAlbum
,
Post
,PostsCategory
andTag
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
- 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 thecache()
method and uses thegetCacheName()
table
method to get the default name of the cache config to use, if that method
exists.
2.27.0
- requires at least PHP
7.0
,phpunit
6.0
andCakePHP
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 fromMenuHelper
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 asgetPaths()
and is now public; - javascript functions are now "camelCase":
tag_exist()
becomestagExists()
,
add_tags()
becomesaddTags()
,remove_tag()
becomesremoveTag()
and
update_output_text()
becomesupdateOutputText()
; - many small fixes;
- updated for
me-tools
2.18.13
.
2.26.7
- added a basic style sheet for printing;
- fixed bug for some no existing photos;
- improved code for
PostsTable::queryForRelated()
method; add
andedit
template files forPosts
,PostsCategories
,Pages
and
PagesCategories
have been merged into theform
templates respectively;- added
admin/priority-badge
template element; - updated for
php-tools
1.2.8
andme-tools
2.18.11
.
2.26.6
- added
AppTable::deleteAll()
method. This automatically clears the cache
associated with the table, when possible; - added
AppTable::clearCache()
; - fixed the
StaticPage
utility. ThegetPath()
method becomesgetPaths()
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()
, addedAppTable::beforeMarshal()
; StaticPage::getAppPath()
andStaticPage::getPluginPath()
been replaced by
theStaticPage::getPath()
method;- improved and fixed the
AuthHelper
. Now it is loaded from the view (instead of
from the controller) requires an array with theuser
key as configuration; - improved and fixed the
KcFinderComponent
; - improved validation rules. Removed some useless validation methods;
- uses
league/commonmark
package instead ofgourmet/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
andCategoryValidator
abstract classes; - updated for
php-tools
1.2.7
.
2.26.5
- 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 asisSpammer()
;- updated for
me-tools
2.18.7; - added
MeCms\ORM\PostAndPageEntity
abstract class; - added
MeCms\TestSuite\BannersAndPhotosAdminControllerTestCase
abstract class; PostsAndPagesTables
class moved toMeCms\ORM
namespace;- removed useless
ControllerTestCase::assertHasComponent()
method; - updated for
php-tools
1.2.5.
2.26.4
- 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
- added the Disqus comment system for pages and posts. By default, comments are
enabled for posts; - added
enable_comments
field toPages
andPosts
tables.
AddedVersionUpdatesCommand::addEnableCommentsField()
method; - fixed bug for static pages with locales.
2.26.2
- 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
- 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()
andPostValidator::validTagsChars()
have
been replaced with thePostValidator::validTags()
method.TagValidatorTrait
has been removed and its methods has been moved intoTagValidor
class;- fixed a bug when loading plugins, when the
Asset
plugin does not exist.