Commit Graph

366 Commits

Author SHA1 Message Date
Samuel Georges dd06cd13fa Handle cases where directory is not writable 2016-08-27 13:27:57 +10:00
Samuel Georges 1e0741e407 Fixes CodeParser concurrent access errors
Big thanks to @shina, @BearishSun and @MarcoROG for their help with finding a solution
Fixes #1250
2016-08-27 12:45:56 +10: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
Samuel Georges 3698f13acb URL -> Url 2016-08-20 14:26:21 +10:00
Samuel Georges 556b951e63 Calling dynamic methods for extended components
In the spirit of #2288
2016-08-06 09:55:42 +10:00
Samuel Georges 78a4067564 Make logic more explicit
This tightens up the rules of 7baea87068
2016-07-23 15:50:48 +10:00
Samuel Georges 7baea87068 Allow AJAX handlers to pipe objects to Laravel
Treat non scalar, non array, non RedirectResponse, non null as a Laravel compatible response
This brings AJAX handlers in line with page cycles, which do the same thing if the response is not a string. However in AJAX we should treat any scalar as a "result", not just a string. For all else (where not null), let Laravel handle it as a custom response object -- could be a model for serialization, or anything compatible.
Importantly to note when a custom redirect is sent, October's workflow is completely wiped out, so any partial updates, redirects, etc. will not occur. This is a normal and fair expectation.
Fixes #1784
2016-07-23 11:57:15 +10:00
Samuel Georges 676196d304 Use starts_with instead of regex 2016-07-16 15:34:20 +10:00
Samuel Georges e970d80443 Align AJAX logic: merge custom response last
This is to allow overriding the standard values
Refs #2209
2016-07-16 13:11:10 +10:00
Anže Časar 68deb59265 Pass the router reference on beforeRoute event 2016-07-15 17:05:25 +02:00
Samuel Georges 6ca828a1fa Always return an active theme and data 2016-06-16 08:01:34 +10:00
Samuel Georges 0111100990 Shared view vars now passed to content blocks and mail templates 2016-06-04 07:26:16 +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 ebc7929ada MaintenanceSettings -> MaintenanceSetting 2016-05-27 07:49:13 +10:00
Samuel Georges cdb35f5070 UserPreferences -> UserPreference
(Models should be singular)
2016-05-27 07:35:32 +10:00
Samuel Georges d730f9af9d Merge branch 'froala' into develop 2016-05-24 05:46:39 +10:00
Samuel Georges af19341c01 "Quick Uploads" are dumped in a special folder via media manager
Refs #2005
Remove the active state on media manager table data for consistency with other view modes
2016-05-22 07:24:04 +10:00
Jérémy Gaulin e3812036da Allow usage of namespace alias in the code section a a CMS page, with
unit test. Fixes #2006
2016-05-21 16:27:15 +02: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 a5acbc7bff Add before/after events for component::onRun 2016-04-27 05:44:32 +10:00
Samuel Georges 87a4de40de Address serialize/unserialize issues
This will require a cache clear for the combiner
Ref https://davidwalsh.name/php-serialize-unserialize-issues
2016-04-16 08:22:31 +10:00
Samuel Georges b534006f35 DbDongle -> App::hasDatabase 2016-04-16 07:44:18 +10:00
Samuel Georges cafd5d7ffa ComponentPartial properties should be publically accessible
Fixes caching issue when updating a component partial
2016-04-16 04:42:34 +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 ca3e13ed33 Fixes issue related to PHP 5.5.12
For some reason the closure did not like static calls inside, bye bye array_map(...)
2016-04-02 17:39:23 +11:00
Pásztor Gábor 9f3fcf27ed Update AssetsList 2016-03-30 18:17:18 +02:00
Pásztor Gábor 40269cb6e2 Clean up 2016-03-29 14:55:25 +02:00
Pásztor Gábor 87a5ff339e Fix error in Maintenance Settings 2016-03-28 15:41:47 +02:00
Samuel Georges 86d4ae491e Minor 2016-03-25 18:42:39 +11:00
Samuel Georges 2a7dbdd74a Merge branch 'stable' into ui
Conflicts:
	modules/cms/classes/CmsObject.php
	modules/cms/widgets/MediaManager.php
2016-03-25 18:42:13 +11:00
Samuel Georges 4ddc8055c6 Merge branch 'develop' into stable 2016-03-25 18:39:16 +11:00
Samuel Georges 3cac52afd4 Default is null, not false 2016-03-25 10:42:14 +11:00
Samuel Georges f1aa720086 Create a safe mode to disable code field in the CMS
Fixes #1756
2016-03-25 10:05:04 +11:00
Samuel Georges 680887f452 Fixes component access issue 2016-03-25 09:56:36 +11: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 6e7fa7de88 Allow CmsObjects to define their own Twig cache key 2016-03-21 13:42:03 +11:00
Samuel Georges 4922d6d284 Retain previous listInTheme cache functionality 2016-03-20 16:04:27 +11:00
Samuel Georges fad028bc40 Add local cmsObject.fillViewBagArray event
Tidy up some inline docs
2016-03-19 13:22:08 +11:00
Samuel Georges 792b7fed2a Fixes CmsException on bad INI
No need for Cms SectionParser.php anymore
2016-03-19 10:30:42 +11:00
Samuel Georges c244aef2f8 Clean up 2016-03-18 19:54:27 +11:00
Samuel Georges 7f209d2df9 Bring Asset in line with inTheme 2016-03-17 19:28:29 +11:00
Samuel Georges 045d186960 Finishing porting old functionality
- Add validation to Cms Objects
- Add local viewBag logic
- Implement new initCacheItem process
- Implement getter for viewBag/settings properties
2016-03-17 19:25:50 +11:00
Samuel Georges dcc63baffd Theme -> Datasource 2016-03-17 19:22:37 +11:00
Samuel Georges 864d38b77e Why are these static?
...seriously, why are they static?
2016-03-12 15:49:37 +11:00
Samuel Georges 24a620e890 Convert CmsObject and CmsCompoundObject to use Halcyon
getFullPath -> getFilePath
2016-03-12 15:32:16 +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 1bc647f978 Decouple Asset object
Add extensible to ComponentPartial
2016-03-12 10:17:07 +11:00
Samuel Georges c34f72b821 Decouple ComponentPartial from CmsObject 2016-03-09 21:01:57 +11:00