Luke Towers
46c867e4b5
Improve API docs
...
Resolves #4214
2019-06-12 00:33:30 -06:00
Sebastiaan Kloos
f921af4199
Fix menus not being displayed with database templates ( #4362 )
...
Credit to @SebastiaanKloos.
2019-06-06 21:05:38 +08: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
Samuel Georges
8c398e7ad5
cms_theme_contents -> cms_theme_templates
2019-06-01 12:45:29 +10:00
Samuel Georges
17cea816d8
enableDatabaseLayer -> databaseTemplates
2019-06-01 12:40:17 +10:00
Samuell
0fdd3c32cb
Properly isolate theme's config cache ( #4284 )
...
Fixes support for switching between themes. Credit to @Samuell1 and @w20k
2019-04-21 18:16:29 -06:00
Luke Towers
7c7ff31cd6
Return 404 when attempting to access /error directly in production
...
Replaces #2212
2019-04-19 15:29:00 -06:00
Samuell
a69455d409
Cache the theme config ( #4270 )
...
Fixes #4265 . Credit to @Samuell1
2019-04-19 10:59:27 -06:00
Ben Thomson
28ac50ab28
Fix for models that don't yet exist
...
Credit to @bennothommo. Fixes https://github.com/octobercms/october/pull/3908#issuecomment-447291101
Co-Authored-By: LukeTowers <github@luketowers.ca>
2019-04-12 00:13:39 -06:00
Ben Thomson
ab6023f3e9
Fixed typo
...
Credit to @bennothommo
Co-Authored-By: LukeTowers <github@luketowers.ca>
2019-04-11 23:36:13 -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
Luke Towers
5f78fd4df9
Initial implementation attempt for theme:sync command
2018-12-16 09:43:33 -06:00
Teranode
82a38bdfb6
Add ability to delete asset files ( #3933 )
...
Fixes : #3925 . Credit to @Teranode
2018-11-28 11:08:39 -06:00
Luke Towers
a4f5e1b96e
Finished initial implementation of Commit / Reset buttons
2018-11-23 13:35:51 -06:00
Luke Towers
878bb890b9
Passed the buck to the AutoDatasource to implement pushToSource and removeFromSource, added type hinting to AutoDatasource parameters
2018-11-23 11:28:34 -06:00
Luke Towers
7ebd8b9ffc
Implement canCommitTemplate and canResetTemplate checks, added UX for commit / reset buttons (load indicator & success flash messages)
2018-11-23 11:07:36 -06:00
vosco88
2d1a904512
Extend opcache check if it is enabled ( #3664 )
...
Credit to @vosco88.
When trying to deploy October on shared hosting (www.websupport.sk) it is possible to receive the following error when accessing the frontend pages - ErrorException:> Zend OPcache API is restricted by "restrict_api" configuration directive. This checks not only if the opcache_invalidate exists but also if opcache is enabled. Same check is actually present in twig vendor files - but so far it is working without having the check there.
2018-11-23 09:36:24 -06:00
Luke Towers
f730fc85e1
Fix import statement
2018-11-22 16:54:35 -06:00
Luke Towers
7809f9ada5
Added a Theme::databaseLayerEnabled method to make checking for the db layer easier
2018-11-22 13:41:11 -06:00
Luke Towers
1920d5b4b6
Fix bug where updating records that didn't exist in the DB yet would cause both the original and new records to display
2018-11-22 12:04:41 -06:00
Luke Towers
38fe4af1e6
Fixed minor oversight in delete() method on AutoDatasource
2018-11-15 15:14:05 -06:00
Luke Towers
45bd2654fc
Added Meta CmsObject, fixed bug in AutoDatasource
2018-11-14 16:52:46 -06:00
Luke Towers
e622defed1
Initial implementation of insert() and update() on the AutoDatasource
2018-11-06 16:00:27 -06:00
Luke Towers
e5518e0976
Update AutoDatasource->getAvailablePaths implementation to match updated interface
2018-11-06 14:48:47 -06:00
Luke Towers
0efae6dc33
AutoDatasource deletions now occur only on first datasource
2018-11-06 14:38:19 -06:00
Luke Towers
4887519e27
AutoDatasource bug fixes and performance improvements
...
Properly remove deleted paths from results returned by AutoDatasource->select() and utilize the cache exclusively when only selecting the fileName column preventing calls to the source datasources.
2018-11-06 14:22:05 -06:00
Luke Towers
65e0c9d7b6
Add initial support for deleted paths
2018-11-05 16:02:12 -06:00
Luke Towers
32c7891942
Minor changes
2018-11-05 14:35:58 -06:00
Luke Towers
e14ded4be6
Initial work on the AutoDatasource
2018-11-02 16:04:35 -06:00
Luke Towers
1dc6f944ac
Documented cms.router.beforeRoute
2018-10-11 20:31:36 -06:00
Luke Towers
900220b079
Documented more inline events:
...
cms.page.beforeDisplay
cms.page.display
cms.page.init
cms.page.beforeRenderPage
cms.page.start
cms.page.end
cms.page.postprocess
cms.page.initComponents
cms.page.render
cms.page.beforeRenderPartial
cms.page.renderPartial
cms.page.beforeRenderContent
cms.page.renderContent
2018-10-11 20:10:28 -06:00
Luke Towers
11ad4f6329
Documented cms.theme.getEditTheme & cms.theme.setActiveTheme
2018-10-11 18:53:52 -06:00
Luke Towers
96127f0d91
Check that getProperties method returns an array ( #3853 )
...
Fixes #3851 .
2018-10-10 08:48:37 -06:00
Samuel Georges
a0ec7652f8
Remove stub method
...
This is a very old stub method included to point out an override is available, in the process it prevents the viewBag property from being populated by the underlying CmsCompoundObject base class, thereby preventing anyone from extending the Layout or Page with custom form fields.
Refs #3769
2018-10-01 10:29:03 +10:00
Alexander Shapoval
709790a05d
Added method getLayout() to Controller ( #3765 )
...
Credit to @ebashu-on-holidays
2018-09-09 18:55:10 -06:00
Samuel Georges
4ec3b525e0
Fixes event implementation
...
The array_merge approach will only shallow merge the arrays preventing a second event from contributing form fields properly. Passing by reference is the logical thing to do here.
2018-09-06 17:08:05 +10:00
Nathan van der Werf
8fd16d4db6
Merge branch 'develop' into feature/cleanup
...
# Conflicts:
# modules/backend/formwidgets/FileUpload.php
2018-08-24 19:52:54 +02: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 742a5f415bc45819b11c77402efc114fa2f4451e.
2018-08-24 19:40:40 +02:00
Samuel Georges
eb2419cc74
Typo
2018-08-21 13:28:12 +10:00
Samuel Georges
8383466508
Introduce events for extending Theme configuration
2018-08-21 13:18:22 +10:00
Luke Towers
1032fd0cc1
Added more inline API event docs:
...
Added docs for:
cms.component.beforeRunAjaxHandler
cms.component.runAjaxHandler
Improved docs for:
cms.ajax.beforeRunHandler
2018-08-18 09:05:38 -06:00
Nathan van der Werf
8b6f11e6ac
Extract child instructions
2018-08-15 19:25:42 +02:00
Nathan van der Werf
fbca3bea92
Remove redundant variables
2018-08-15 19:23:12 +02:00
Nathan van der Werf
62c59a4903
Refactor ternary operators to null coalescing operators
2018-08-15 19:15:13 +02:00
Nathan van der Werf
a3d7a028b4
Replace is_null with "=== null" comparison
2018-08-15 18:54:46 +02:00
Nathan van der Werf
77b6f07291
Modify conditions to use elvis operators
2018-08-15 18:53:11 +02:00
Nathan van der Werf
123145fd54
Remove unnecessary parentheses
2018-08-15 18:49:52 +02:00
Nathan van der Werf
02bd38cfb1
Merge if constructs
2018-08-15 18:45:37 +02:00