Commit Graph

369 Commits

Author SHA1 Message Date
Samuel Georges 0f215785f3 Rollback the idea of using $visible on CmsCompoundObjects
This feature should be reserved for serializing the object (in future maybe) rather than defining visible properties, these should be relaxed.
2015-07-25 11:07:36 +10:00
Samuel Georges 52ea4a73c8 Performance improvements, rename scopes to standard 2015-07-21 20:46:35 +10:00
Samuel Georges f9c921a797 Adds getAjaxHandler() API to controllers
Fixes bug where update process fails midway
2015-06-30 08:56:53 +10:00
Samuel Georges 3e95ee555f Merge pull request #1224 from scottbedard/patch-4
Translate component group
2015-06-27 09:26:18 +10:00
Samuel Georges 0da649551b Complete pagelinks plugin for redactor 2015-06-25 12:59:59 +10:00
Samuel Georges cd1d62d8d7 AJAX requests can only use the POST method 2015-06-20 20:18:58 +10:00
Scott Bedard cb38107c25 Translate component group
Just a minor convenience, I think it makes sense to have this property auto-translated as well.
2015-06-19 22:22:18 -04:00
Samuel Georges e6bfa5b970 Add extra file types - Refs #1209 2015-06-20 10:28:16 +10:00
Samuel Georges 91c061f60a Add |media filter and MediaLibrary::url helper 2015-06-17 18:51:05 +10:00
Samuel Georges 8c6a58981e Roll back the changes from #852 in the name of KISS
The page vars are just that, view variables, if used incorrectly (relaxed) they can leech out
2015-06-17 18:50:51 +10:00
Samuel Georges 99146294aa Minor touch ups
Add danger style to popover
2015-06-06 16:49:30 +10:00
Samuel Georges 9e6d0a660c Simplify visibleViewBag + visibleSettings
hidden -> is_hidden
2015-06-05 17:24:27 +10:00
Samuel Georges dbba9349ab Adds a method for defining which settings and viewBag properties should be visible as native ones 2015-06-04 19:16:35 +10:00
Samuel Georges 84da449d05 Fixes an infinite loop 2015-06-03 17:24:22 +10:00
gergo85 7ab72b3743 Improve multilanguage support 2015-05-16 11:47:24 +02:00
Samuel Georges 4d057ba266 Fixes flaw in logic
Recompile JS from #1135
2015-05-16 09:57:40 +10:00
Samuel Georges 8b3ab93786 Component variables set with `$this->page` no longer leech in to other component partials.
Fixes #852
2015-05-16 09:29:27 +10:00
Samuel Georges ccf8073ad6 Make page listing more detailed, now includes [base file name] 2015-05-15 20:19:11 +10:00
Samuel Georges e675866284 The |page filter now supports passing an empty string to generate a link to the current page. 2015-05-15 20:18:40 +10:00
Samuel Georges e3bd53230f Revert breaking from #1103 2015-05-09 11:06:04 +10:00
niclasleonbock 28f265c10a Fix two minor media manager bugs 2015-05-03 16:10:30 +02:00
Samuel Georges e6e0facaa0 Fixes issue when routing to CmsController homepage (no params)
Fixes https://github.com/rainlab/translate-plugin/issues/67
Fixes https://github.com/rainlab/translate-plugin/pull/68
2015-05-02 12:56:40 +10:00
Samuel Georges f49775d547 Routes cache should be used for all driver types
Minor cleanup of MediaManager class
2015-05-02 11:58:09 +10:00
Samuel Georges 9470259727 Minor clean ups 2015-04-29 19:50:30 +10:00
Samuel Georges 10ec177c54 Pass parameters to route cache - Fixes #1088 2015-04-28 20:04:35 +10:00
Samuel Georges cacec27d25 Fixes issue preventing CMS AJAX from returning arrays 2015-04-28 19:31:38 +10:00
Samuel Georges 9e2e0df74c Remove deprecated API on Psge::url 2015-04-28 07:48:00 +10:00
Samuel Georges ab1272bea9 Add parameter support to {% content %} tags 2015-04-25 13:58:05 +10:00
Samuel Georges 9173e3bb9a Merge branch 'develop' into media-manager 2015-04-23 18:09:18 +10:00
Łukasz Biały e2fccafa3c allow calling of components extension ajax handlers 2015-04-22 01:22:14 +02:00
Samuel Georges 1a037bad04 Add the ability to include middleware in CMS / Backend controllers
Add init.php script to plugins
Fixes https://github.com/octobercms/library/issues/106
2015-04-21 20:07:34 +10:00
Samuel Georges 0b82e1f44f Fixes operation in subfolders 2015-04-16 19:13:33 +10:00
Samuel Georges 7ca6602c08 Minor 2015-04-15 19:43:05 +10:00
alekseybobkov 87a2ea1350 Implemented Insert Video and Insert Audio features 2015-04-14 22:44:45 -07:00
Samuel Georges 8e69039c0d Adds folder support for making partials 2015-04-14 22:17:10 +10:00
alekseybobkov 06e5dce96a Fixed a conflict in framework.js. Closures in the script are named now, for the memory profiling needs.
Conflicts:
	modules/system/assets/js/framework.js
2015-04-11 18:58:24 -07:00
alekseybobkov c1740c479c Media Manager: implemented insert link, insert image, and crop and insert features. Minor fixes in October core and third-party JS plugins. 2015-04-11 18:55:02 -07:00
Samuel Georges 297ac65ce6 Alternative fix to #1050 2015-04-11 10:59:27 +10:00
Łukasz Biały 4212386b37 fixes iteration overriding argument name, caused bug where properties of another component where returned if cache was empty 2015-04-07 13:12:20 +02:00
alekseybobkov 790b464679 Merge branch 'develop' into media-manager 2015-04-04 19:01:08 -07:00
Samuel Georges c54821f175 Overhaul the plugin installation process in the back-end
Themes can now be installed via the back-end
2015-04-04 17:28:51 +11:00
Samuel Georges 9d4bc8eee6 Create withComponent() filter for CmsObjects 2015-04-04 10:34:25 +11:00
alekseybobkov 5731ad0db7 Merge branch 'develop' into media-manager 2015-03-26 18:37:24 -07:00
Samuel Georges 15a016a338 Disable route persistence for static menus 2015-03-25 19:34:09 +11:00
alekseybobkov 86b9f58465 Implemented folder and file moving. 2015-03-22 13:07:37 -07:00
alekseybobkov f7d08f1197 Implemented folder creation, fixed a minor issue with selecting items, added a new event to the Popup control. 2015-03-21 23:09:33 -07:00
alekseybobkov cd0b107a2b Implemented file and folder renaming 2015-03-21 16:14:26 -07:00
alekseybobkov 331276c244 Implemented file and folder deletion 2015-03-18 22:20:53 -07:00
alekseybobkov e2a9c25b65 Implemented search. 2015-03-17 22:20:04 -07:00
alekseybobkov 03c46012dc Merge branch 'develop' into media-manager 2015-03-17 19:30:57 -07:00
alekseybobkov 4e1217e2de Implemented item sorting. Minor fix in the drop-down list styling. 2015-03-16 21:49:39 -07:00
alekseybobkov a040fa4c68 Implemented file type filters 2015-03-16 20:32:51 -07:00
Samuel Georges 851d421092 Update various language references 2015-03-16 19:33:58 +11:00
Samuel Georges 77d3ab8b67 Finish basic theme utilities: properties, import/export, duplicate, delete 2015-03-16 19:00:39 +11:00
alekseybobkov 44c08b76f9 Implemented file uploading 2015-03-15 21:54:39 -07:00
alekseybobkov 78ad303236 Merge branch 'develop' into media-manager
Conflicts:
	composer.json
	modules/backend/assets/css/october.css
	modules/backend/assets/less/controls/lists.less
	modules/backend/assets/less/october.less
	modules/backend/widgets/Form.php
	modules/backend/widgets/form/partials/_field.htm
2015-03-15 13:06:50 -07:00
alekseybobkov 18e058ad59 Added the Media tab, minor update in .htaccess to allow temporary public directory to be accessible; implemented the basic UI components and navigation; implemented grid, list and tiles view modes; implemented drag-select interface; implemented Media Library cache refreshing; implemented thumbnail generating for local and remote media files; fixed memory leak in third-party Flot Resize library; minor update in the AJAX framework - AJAX request cancelling is not considered as an error anymore; added back-end UI components for creating panels. 2015-03-15 12:52:03 -07:00
Samuel Georges 9b8e1ce3c1 Improve theme list to allow editing properties 2015-03-14 18:09:54 +11:00
Samuel Georges a8389fb1aa Tooltip now auto initializes
initForm can now pass context
Various improvements and bug fixes
2015-03-12 20:50:16 +11:00
Samuel Georges fbe755c119 Use fallback when routes are not registered for pageUrl()
pageUrl() also no longer supports $absolute (arg 3)
2015-03-11 19:15:54 +11:00
Samuel Georges 682dbe4b95 Refactor CMS Controller, can now have ::render() called from the outside 2015-03-11 08:34:25 +11:00
Samuel Georges a324f01678 CmsCompoundObject::hasComponent() now resolves registered codes for comparison 2015-03-07 20:28:17 +11:00
Samuel Georges ec14cd6bee Updates for new input preset /form field API 2015-03-07 11:20:54 +11:00
Samuel Georges 477ce7bbc7 Lil tidy up 2015-03-07 10:47:38 +11:00
Samuel Georges a3f3084924 Implement AjaxException 2015-03-03 18:41:09 +11:00
Samuel Georges e487f075c4 Fixes issue in CodeParser where it tries to use a class that doesn't exist
Adds context to filterFields() model override
2015-02-26 23:08:38 +11:00
alekseybobkov 1c273f28ba Implementing the MediaLibrary class, in progress 2015-02-24 22:02:03 -08: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 7b52e07b65 Overhaul exceptions, rename triggerapi display -> show 2015-02-16 21:16:43 +11:00
Samuel Georges 9927568d98 Removed the deprecated propertyOrParam() 2015-02-14 16:31:56 +11:00
Samuel Georges a2f2f5f87f Component->paramName() was not functioning as described
{{ :param }} returned null, should return "param"
2015-02-14 15:52:58 +11:00
Samuel Georges 6a2f64757b *** REMOVED ALL DEPRECATED CODE ** 2015-02-14 14:11:25 +11:00
Samuel Georges 3d04f06ad1 Various fixes 2015-02-12 21:04:05 +11:00
Samuel Georges 0a6e14f4d2 Popup control now supports several sizes via `data-size` attribute: giant, huge, large, small, tiny.
Fixes various bugs in RC version
2015-02-11 14:36:00 +11:00
Samuel Georges f6371d532b Fixes unit tests 2015-02-10 17:45:27 +11:00
Samuel Georges 610ea932fc Fixes #856 - Implement a linking policy, defaults to relative 2015-02-09 21:52:17 +11:00
Samuel Georges fbf46519b4 Implement plugins_path() usage 2015-02-07 15:37:07 +11:00
Samuel Georges 9a616b6174 Fix clear cache, update storage paths 2015-02-07 14:50:03 +11:00
Samuel Georges 4c29c5080d Clean up, get front and backends operational again 2015-02-05 19:47:20 +11:00
Samuel Georges 899100919d Rewrite all implementations of remember() on models 2015-02-04 19:52:59 +11:00
Samuel Georges beb818efa5 Merge branch 'develop' into laravel5
Conflicts:
	modules/cms/classes/CmsCompoundObject.php
	modules/system/ServiceProvider.php
2015-02-04 19:35:55 +11:00
Samuel Georges ab128301e8 Minor 2015-02-02 00:24:05 +11:00
Samuel Georges 8ab39cb424 Minor 2015-02-01 23:56:27 +11:00
Samuel Georges b1b700368f Radical reorg of some classes 2015-01-28 11:49:54 +11:00
alekseybobkov e7e50bc684 Merge branch 'develop' of github.com:octobercms/october into develop 2015-01-21 21:39:03 -08:00
alekseybobkov cc23b434cb Minor improvements in the CMS API 2015-01-21 21:38:42 -08:00
Samuel Georges 9c4b2d690b Tidy up event 2015-01-21 22:03:52 +11:00
Samuel Georges f24d9ab3d3 Turns out this event was used, added it back with proper args 2015-01-21 21:41:09 +11:00
alekseybobkov d850a795fd Minor updates in the components API and Inspector 2015-01-20 19:38:02 -08:00
alekseybobkov 1dd2248717 Merge branch 'develop' of github.com:octobercms/october into develop 2015-01-18 19:20:46 -08:00
alekseybobkov 8ff242c1d0 Fixed default options support in Inspector, minor improvement in the components API. 2015-01-18 19:20:33 -08:00
Samuel Georges 7b4a419241 Not sure this event is used anywhere, it has improper implementation (missing $result from passed arguments) 2015-01-18 16:00:38 +11:00
Samuel Georges 2bf0084796 * Build 180 - Use less situational event names. @ping alekseybobkov 2015-01-18 15:59:44 +11:00
Samuel Georges 9ea6940e6a Add {{ this.session }} 2015-01-05 21:08:30 +11:00
Samuel Georges b08020fd4c Update CHANGELOG 2015-01-05 15:02:22 +11:00
Samuel Georges 55a68be13b Check for the presence of validation errors in the session, and add it to the view 2015-01-05 14:57:17 +11:00
Samuel Georges 415f07eb1d Fixes various unit tests so they pass (Tested in Windows) 2015-01-05 12:37:04 +11:00
Samuel Georges 59c9146b4f Merge pull request #861 from gergo85/master
Cleanup
2015-01-05 09:21:09 +11:00
alekseybobkov 7e5ce04a79 Merge branch 'develop' into dynamic-partials 2015-01-03 16:41:25 -08:00
alekseybobkov 6440b718d8 Updates in the rich editor styling, minor improvements in the Inspector and CMS core. 2015-01-03 16:39:38 -08:00
gergo85 f0005d196b Cleanup
Remove whitespaces.
2015-01-03 12:41:23 +01:00
Samuel Georges df3e66246f Fixes #839 - When rendering partials from component PHP code, be firm about the context 2015-01-03 15:15:57 +11:00
Samuel Georges fa250927d0 New events for components: runAjaxHandler + beforeRunAjaxHandler 2015-01-03 12:51:09 +11:00
Samuel Georges 03bf0c8206 These are useful helpers, make them public 2015-01-03 12:33:32 +11:00
alekseybobkov 3ac21e3c89 Merge branch 'develop' into table-widget 2014-12-17 22:15:23 -08:00
Samuel Georges 3170dd61ea Add new methods propertyName() and paramName() to Component base class for accessing names of external properties. 2014-12-16 15:41:50 +11:00
Samuel Georges b95eb5b342 setComponentPropertiesFromParameters -> setComponentPropertiesFromParams 2014-12-16 15:18:36 +11:00
Samuel Georges a03d0cc8b4 showExternalParameter -> showExternalParam 2014-12-16 15:16:31 +11:00
Samuel Georges d3000ca51a Unify the handling of detailed exception messages 2014-12-16 12:21:55 +11:00
Samuel Georges 9f8eb58591 Fixes bug where setting statusCode doesn't work for AJAX handlers 2014-12-08 19:01:27 +11:00
Samuel Georges 33be75af10 Config item `cms.customErrorPage` is deprecated, the setting `app.debug` should be used instead. 2014-12-06 13:22:57 +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 88ac73d221 Throw AppExceptions so they are not logged 2014-12-05 08:46:57 +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 bb18230f46 Refs #792 - Fixes logic error 2014-11-26 17:31:07 +11:00
Samuel Georges 49f5b23e31 Refs #792: Improve 'cms.page.beforeDisplay' event to support modifying the page, clean up events 2014-11-26 17:29:04 +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 0c812a59e5 Merge pull request #782 from webmaxx/develop
Added new symbols to page slug regexp in the backend.
2014-11-19 20:53:34 +11:00
webmaxx b4819e73b3 Added new symbols to page slug regexp in the backend.
Example slug:
/news/:page?|^[0-9]+$ - "/news/", "/news/2"
2014-11-19 12:04:55 +04:00
Samuel Georges b6ec6ccf2c Pass mtime to menu resolving method results 2014-11-19 17:46:26 +11:00
Samuel Georges f351697c48 Streamline Theme object API (::load should be static as in CmsObject) 2014-11-19 17:45:57 +11:00
alekseybobkov ba32d9a1bf Merge branch 'develop' into viewbag-unification 2014-11-11 11:43:12 -08:00
Sam Georges cfaf3228d9 Fixes #9 - Adds maintenance mode setting to the CMS 2014-11-10 20:34:42 +11:00
alekseybobkov 802f96f10e Refactoring of the view bag support code 2014-11-03 20:50:18 -08:00
Sam Georges 7357954c84 Proposed fix for handling defaults when parsing external properties 2014-11-04 12:33:38 +11:00
Sam Georges c83797231d Subsequent expressions are on a new line (see developer guide > PSR exceptions) 2014-11-01 12:00:45 +11:00
Sam Georges 03e9f48333 Deprecate propertyOrParam 2014-10-31 20:01:17 +11:00
Sam Georges afcf50a585 noExternalParameter -> showExternalParameter 2014-10-31 19:57:07 +11:00
Sam Georges ac37d23d14 Tidy up code a lil 2014-10-30 16:54:56 +11:00
alekseybobkov 2a771190ea Merge branch 'develop' into dynamic-partials 2014-10-29 22:14:31 -07:00
alekseybobkov 9a05a408c9 Added support for components in partials 2014-10-29 22:12:42 -07:00
Sam Georges 4ac6469200 Original data does not exist for new objects 2014-10-23 08:11:11 +11:00
Sam Georges 23f6d75416 Peer review of #679 2014-10-19 10:58:18 +11:00
Stefan Talen 509e7d2a12 Fixing issues with files in modules/cms 2014-10-18 12:03:48 +02:00
Stefan Talen 347dff7e75 Merge branch 'develop' of https://github.com/octobercms/october into feature/PSR-2
Conflicts:
	modules/backend/behaviors/RelationController.php
	modules/backend/classes/WidgetManager.php
	modules/cms/classes/CmsCompoundObject.php
	modules/cms/twig/Extension.php
	modules/cms/twig/PlaceholderNode.php
	modules/cms/widgets/TemplateList.php
2014-10-18 11:07:17 +02:00
Sam Georges 8ee28b214d Minor code clean 2014-10-18 14:32:06 +11:00
alekseybobkov 219f1ff8f7 Merge branch 'develop' into static-pages-support
Conflicts:
	modules/backend/assets/less/controls/filelist.less
2014-10-16 21:03:20 -07:00
alekseybobkov 12175b29db Multiple updates in the back-end widgets and styles 2014-10-16 20:47:23 -07:00
Stefan Talen 06890d711a Merge branch 'develop' of https://github.com/octobercms/october into feature/PSR-2
Conflicts:
	modules/backend/behaviors/UserPreferencesModel.php
	modules/cms/classes/Controller.php
	modules/system/classes/CombineAssets.php
2014-10-16 18:44:18 +02:00
Sam Georges 57ec5c7261 Moved asset combiner to the system module 2014-10-15 08:09:46 +11:00
Stefan Talen acf2304ce2 Fixing test SectionParserTest::testParseOffset 2014-10-12 14:23:47 +02:00
Stefan Talen 230a7377cf Updating files in modules/cms 2014-10-11 14:33:40 +02:00
Stefan Talen 61cf1ad710 Merge branch 'develop' of https://github.com/octobercms/october into feature/PSR-2
Conflicts:
	modules/backend/behaviors/FormController.php
	modules/backend/classes/AuthManager.php
	modules/backend/lang/fa/lang.php
	modules/backend/widgets/Form.php
	modules/cms/classes/CmsCompoundObject.php
	modules/cms/classes/ComponentHelpers.php
	modules/cms/formwidgets/Components.php
2014-10-11 11:58:20 +02:00
alekseybobkov 0b8af1f505 Merge branch 'develop' into static-pages-support 2014-10-10 22:27:01 -07:00
alekseybobkov 0b2481560b Merge branch 'develop' of github.com:octobercms/october into develop 2014-10-10 21:21:05 -07:00
alekseybobkov 8339323870 Fixes the bug where finding a component by class name is not possible if the component has an alias 2014-10-10 21:20:46 -07:00
Sam Georges 4504d5bf4c Improve translation handling 2014-10-11 10:37:48 +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
Sam Georges 7e62ef5925 Refs #670 - Attempt fix 2014-10-09 17:14:29 +11:00