Commit Graph

119 Commits

Author SHA1 Message Date
Luke Towers 02d894f52b Fix use of Storage::url() for local disks that haven't been configured correctly. Fixes #4581 2019-09-02 12:33:36 -06:00
Ben Thomson a59d3b83eb Code quality clean up (#4449)
Credit to @bennothommo
2019-07-18 08:50:37 -06:00
Samuel Georges e7ec0be0c1
Merge pull request #3908 from octobercms/wip/halcyon-db-datasource
Database layer for the CMS objects
2019-06-01 14:28:34 +10:00
Jim Cottrell e2c89fb3a2 If using database, don't call plugin task scheduling until initial system migration runs. (#3712)
Fixes #3208. Replaces #3706. Credit to @jimcottrell
2019-04-19 14:54:48 -06:00
Luke Towers 630d543959 Merge branch 'develop' into wip/halcyon-db-datasource 2019-04-11 12:30:29 -06:00
Luke Towers c86bec7f08 Replace deprecated Twig class references, refs: #4209. 2019-03-27 13:15:17 -06:00
LucasZdv 44cc080769 Added plugin:list, plugin:disable, & plugin:enable artisan commands (#4127)
Credit to @LucasZdv. Documented by https://github.com/octobercms/docs/pull/356
2019-02-22 12:50:01 -06:00
dzava a539a36b30 Override the Paginators defaultSimpleView (#3652)
Credit to @dzava. Fixes #3355.
2019-01-21 23:49:25 -06:00
Luke Towers bba42c36e9 Added outline of theme:sync command 2018-11-05 14:35:41 -06:00
Levente Huszko edcc4af68a Properly utilize the plainOnly flag in mail.beforeAddContent (#3479)
Credit to @hlev
2018-09-24 16:54:16 -06:00
Nathan van der Werf 0f0d108da0
Remove unused imports 2018-08-24 19:51:59 +02:00
Nathan van der Werf 66fa03f17e
Revert "Remove unused imports"
This reverts commit 742a5f415b.
2018-08-24 19:40:40 +02:00
Nathan van der Werf 742a5f415b Remove unused imports 2018-08-15 18:27:36 +02:00
Jim Cottrell bfee483805 Adds support for minifying framework assets (#3240)
Fixes #2753. Credit to @jimcottrell
2018-07-05 17:57:17 -04:00
interworks-morr d52274bbb6 Don't show mail branding menu item unless system.manage_mail_templates is assigned to current user (#3624)
Fixes #3623. Credit to @interworks-morr
2018-07-02 19:14:51 -04:00
Luke Towers bd9f88587f
Fix issues with MySQL utf8mb4 support
Fixes: https://github.com/octobercms/october/issues/1927. Related: https://github.com/laravel/framework/issues/17508. Issue occurs when database configuration related to full support for the utf8mb4 charset is incorrect; MySQL > 5.7 & MariaDB > 10.2 doesn't have this issue because they default to the correct configuration values; this fix solves the issue for older versions of MySQL and MariaDB without requiring database server configuration changes.

The root cause of the issue with the utf8mb4 encoding is that both InnoDB and MyISAM have too low of an index key prefix limit (767 bytes and 1000 bytes respectively) to properly store 255 4-byte characters; which would take 1024 bytes. See the docs on InnoDB limitations: https://dev.mysql.com/doc/refman/5.7/en/innodb-restrictions.html

In MySQL >= 5.7 & MariaDB >= 10.2 this limit has been bumped to 3076 bytes by the changing of the default value of the `innodb_large_prefix` configuration property (introduced in MySQL 5.5) to true; which is what bumps up the limit. In order to manually set that property to true on earlier versions, `innodb_file_format` must be set to `BARRACUDA` and `row_format` must be `DYNAMIC` or `COMPRESSED`. See http://mechanics.flite.com/blog/2014/07/29/using-innodb-large-prefix-to-avoid-error-1071/ for more information. 

This change fixes the issue by changing the default string length to 191 (total of 764 bytes, within the older size limit) when the MySQL database config is detected to be using the utf8mb4 charset.
2018-02-17 17:00:32 -06:00
Luke Towers aee81081df Hide Settings menu when no sub pages to display (#3172)
Remove the Settings main menu item if there are no submenus to display. Fixes https://github.com/octobercms/october/issues/2175
2017-10-18 11:22:33 -06:00
Samuel Georges 11abddf0b6 Errors not written to database events log
Fixes #2998
2017-07-31 17:21:48 +10:00
Samuel Georges 5a417d72d3 Sending raw markdown emails
If raw == (string) content, then it is a markdown email (html/text are ignored -- markdown sets them)
If raw == (bool) true, then it is true raw (html/text must be supplied)
2017-07-30 00:25:11 +10:00
Samuel Georges 3f0e6d8b29 Register `appName` as global view variable
Minor mail template improvements
2017-07-23 17:20:53 +10:00
Samuel Georges 28c30daa4f Use safe md parsing for mail
Ensure backward compatibility by disabling indented code blocks for mail templates
Tweak mail brand colors to match October
2017-07-22 19:01:20 +10:00
Samuel Georges 4e5ac44999 Create remaining mail partials
Improve mail partial lookup method
2017-07-22 18:03:58 +10:00
Samuel Georges 31ffadbc4c Introduce mail branding settings 2017-07-22 17:20:48 +10:00
Samuel Georges 181be5979a More meaningful mail views 2017-07-22 17:19:47 +10:00
Samuel Georges 4663531de2 Introduce mail partials + twig
Improve layout seeding
2017-07-19 21:14:08 +10:00
Samuel Georges 5a4e2b6b11 Email templates now use Markdown
Move mail template management to MailManager
2017-07-14 16:20:53 +10:00
Samuel Georges f3de51e992 Add backend and notifications settings category
URL -> url
Move mail settings below mail templates
2017-06-05 17:36:44 +10:00
Samuel Georges 165d50d971 Changed the logic to use the container binding event
Validator is now deferred so this won't be available early
2017-05-12 07:19:45 +10:00
Quezler cc17b679f1 Code dusting (#2826)
Code cleaning according to PSR-2 w/ exemptions (mostly dust).
2017-04-24 21:38:19 +10:00
Samuel Georges 462c9cd4e8 Introduce theme logging + log settings
CmsObject changes can now be tracked (disabled by default)
Request logging is now disabled by default (security vector)
2017-02-08 05:44:04 +11:00
Pásztor Gábor 94ab13cd8b Fix exception message, remove some unneded imports. 2016-12-07 21:33:05 +01:00
Samuel Georges c8d8d4e931 Introduce new Cms helper
This is modeled after the Backend helper. Primarily used to generate URLs for the frontend, these are piped through the CmsController action. It would also be a good place to add a hook, if necessary later.
2016-08-20 14:43:49 +10:00
Michał Płodowski fb7e7ff164 Command for changing configuration to env syntax 2016-07-08 17:23:03 +10:00
Samuel Georges 97ca0976a7 Create new october:install command
Add quick start instructions to readme
Fixes #1674
2016-06-07 07:09:01 +10:00
Samuel Georges bb769db223 Dashboard now supports reset and make default
Added the new widgets to the add widget screen
System Parameters can now be reset
2016-05-28 14:18:25 +10:00
Samuel Georges f0f751d523 MailSettings -> MailSetting 2016-05-27 07:51:36 +10:00
Samuel Georges cb6cf45156 Fixes issue where Cache helper does not flush framework 2016-04-16 08:10:14 +10:00
Samuel Georges f68eb3f20f Move halcyon registration to model boot
Attempt to fix issue where service provider looks at system_preferences database table that doesn't exist yet as part of the boot() method
Fixes #1897
2016-04-04 18:37:56 +10:00
Samuel Georges 7affc4bec8 Apply layout to unregistered mail templates 2016-03-29 18:17:25 +11:00
alekseybobkov 00ced6c79f UI update 2016-02-28 19:52:21 -08:00
alekseybobkov a943708b99 UI updates 2016-02-19 22:12:41 -08:00
Samuel Georges 4db92fa8b5 Alt fix for #1585 2015-12-05 08:47:07 +11:00
Samuel Georges bbfba7dc34 Remove the use of Twig_Loader_String, added Twig::parse 2015-09-30 05:26:00 +10:00
Samuel Georges 6b916cb554 Adds a timetense list column, inspired by FB
Also added |time_since and |time_tense Twig filters
2015-09-17 05:15:12 +10:00
Samuel Georges 0cd0dc5b62 Add keywords to log pages 2015-08-08 09:38:47 +10:00
Samuel Georges aaebea4716 Tidy up the DB Event logger, add failsafe
If there is a problem with the Model, don't try to log with a broken model (infinite loop), this can be confirmed by checking if the Model class alias exists
2015-08-01 11:15:17 +10:00
Samuel Georges f47b99d183 Move storm to its own build 2015-07-29 19:13:42 +10:00
Samuel Georges 00f7a5ed61 Enable backend context registration 2015-06-27 11:04:44 +10:00
Samuel Georges 50e4840216 Create 'extensions' custom validator
FileUpload can now specify mime types
2015-06-20 10:12:14 +10:00
Samuel Georges d6f6f0dccd Register the system styles as a package, recompile them
Bring back missing styles
2015-06-03 17:23:53 +10:00