56 Commits

Author SHA1 Message Date
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
Samuell
a69455d409 Cache the theme config (#4270)
Fixes #4265. Credit to @Samuell1
2019-04-19 10:59:27 -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
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
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
11ad4f6329 Documented cms.theme.getEditTheme & cms.theme.setActiveTheme 2018-10-11 18:53:52 -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
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
Nathan van der Werf
fbca3bea92 Remove redundant variables 2018-08-15 19:23:12 +02:00
Nathan van der Werf
3a918ad200 Remove "null" assignments 2018-08-15 18:33:24 +02:00
Samuel Georges
fb2aa1730c Fixes security issue
Refs #3604
2018-06-22 22:57:38 +10:00
Samuel Georges
5ea79489af pluck -> value
This is an odd one from Laravel, pluck is now value and lists is now pluck. We'll need a release note about this one.
2017-05-12 07:19:06 +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
e54cf7133b Improve some inline docs in preparation for API docs 2017-03-14 19:36:17 +11:00
Samuel Georges
e2a5d54393 Revise #2426 - Rename preview to previewImage
This is an exotic feature so don't include in the form fields
2017-01-29 09:13:01 +11:00
Szabó Gergő
78d7436460 Set the path of theme preview image manually 2016-10-17 13:51:09 +02:00
Samuel Georges
6ca828a1fa Always return an active theme and data 2016-06-16 08:01:34 +10:00
Samuel Georges
27dc84c59b ThemeData can now pass variables to the combiner
Add support for fileuploads to ThemeData
Fixes #1539
2016-06-02 05:23:05 +10:00
Samuel Georges
74a6a71bcb Parameters -> Parameter
(Models should be singular)
2016-05-31 08:17:48 +10:00
Samuel Georges
adbde0ad09 If the cache should fail, don't bring down the whole app 2016-04-27 05:44:32 +10:00
Samuel Georges
b534006f35 DbDongle -> App::hasDatabase 2016-04-16 07:44:18 +10:00
Samuel Georges
7c08b10fa2 Add cms.theme.setActiveTheme event
Bring other event names in to line with convention
Complete getConfigArray method
2016-03-23 20:11:55 +11:00
Samuel Georges
0b74734fae Make room to load theme options from files
For example:
form: path/to/fields.yaml
2016-03-22 20:03:00 +11:00
Samuel Georges
dcc63baffd Theme -> Datasource 2016-03-17 19:22:37 +11:00
Samuel Georges
855a97b35e Set the default theme as part of the boot process
Themes can also register themselves gracefully with Halycon after loading
2016-03-12 12:14:19 +11:00
Samuel Georges
52ea4a73c8 Performance improvements, rename scopes to standard 2015-07-21 20:46:35 +10:00
Samuel Georges
7ca6602c08 Minor 2015-04-15 19:43:05 +10:00
Samuel Georges
77d3ab8b67 Finish basic theme utilities: properties, import/export, duplicate, delete 2015-03-16 19:00:39 +11:00
Samuel Georges
9b8e1ce3c1 Improve theme list to allow editing properties 2015-03-14 18:09:54 +11:00
Samuel Georges
7145aac457 Prepare for CDN, config rename cms.plugins|themes|uploadsDir -> cms.plugins|themes|uploadsPath
Deprecate data-trigger-type on triggerapi
Fixes ref to Util class
2015-02-17 20:58:38 +11:00
Samuel Georges
899100919d Rewrite all implementations of remember() on models 2015-02-04 19:52:59 +11:00
Samuel Georges
b1b700368f Radical reorg of some classes 2015-01-28 11:49:54 +11:00
Samuel Georges
2533b4ab4d ThemeData now applies default values, Theme object will proxy to ThemeData 2014-12-05 16:45:20 +11:00
Samuel Georges
70eb7eaf51 Adds Theme customization feature
Adds reset button to settings pages
authorUrl -> homepage
2014-12-04 16:49:52 +11:00
Samuel Georges
001e86456d Fixes #788 - Fall back to config theme when db theme fails. 2014-11-23 03:40:04 +11:00
Samuel Georges
f351697c48 Streamline Theme object API (::load should be static as in CmsObject) 2014-11-19 17:45:57 +11:00
Stefan Talen
202e8869b1 Updating modules/cms/classes 2014-10-11 01:22:03 +02:00
Sam Georges
1c4706bbbb Fixes unit tests so they pass 2014-10-09 18:08:28 +11:00
alekseybobkov
a9e2e2d80f Improvements in the CMS objects and back-end UI. 2014-09-18 20:34:24 -07:00
Sam Georges
e85cbf80c5 Fixes unit tests 2014-07-29 13:14:54 +10:00
Sam Georges
5d832a2f7b Fixes #461 2014-07-25 14:21:13 +10:00
Sam Georges
0dabaf67c1 Files should not appear as themes 2014-07-24 19:16:17 +10:00
Sam Georges
15b93c7b03 Rewind DI to prevent double up bug 2014-07-19 16:09:44 +10:00
Sam Georges
a43f4f6b51 Use Parameters model instead of raw DB 2014-07-19 16:07:32 +10:00