Commit Graph

40 Commits

Author SHA1 Message Date
mirche97 5c06933986 Update code/Model/VirtualPage.php
Co-authored-by: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com>
2023-09-21 14:50:34 +02:00
mirche97 9edc46f53d Update code/Model/VirtualPage.php
Co-authored-by: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com>
2023-09-21 14:50:08 +02:00
mirche97 da115d9910 use AdminRootController::get_admin_route()
use AdminRootController::get_admin_route() instead of reading url_base directly from config
2023-09-21 14:49:56 +02:00
mirche97 c3e7a49904 fixed VirtualPage generating incorrect CMS edit links
VirtualPage  now uses AdminRootController config `url_base` to generate edit links
2023-09-21 14:49:38 +02:00
Steve Boyd 55b17c920c API Update deprecations 2022-10-18 15:23:59 +13:00
Steve Boyd ea92339d8d ENH Update deprecation messages 2022-10-18 15:17:19 +13:00
Steve Boyd 1b0b2154b4 ENH PHP 8.1 compatibility 2022-04-13 17:07:59 +12:00
Florian Thoma 480baa6ef8
FIX Use correct canonical tag on VirtualPage (#2688) 2021-11-04 14:59:14 +13:00
Nic Horstmeier 85c3b1096b
UPDATE generate canonical via MetaComponents
This replaces using the `MetaTags` method as replacing or removing a canonical requires string manipulation vs unsetting an array key, and is preferred.
2021-04-05 19:52:35 -05:00
Michal Kleiner d8331c1e0a Use short array syntax across the module's codebase 2020-04-19 16:18:01 +12:00
Serge Latyntcev 4fdcb8180a Merge branch '4.3' into 4.4 2019-09-23 16:22:29 +12:00
Robbie Averill 325d227fe0 FIX Virtual page notice now uses Bootstrap 4 alerts 2019-05-31 14:50:46 +12:00
Loz Calver 7592db918f FIX: VirtualPage missing methods from target page (fixes #2408) 2019-04-18 14:01:26 +01:00
Sacha Judd 1f1f44969a NEW Add font-icon support for site tree 2019-01-14 13:16:30 +13:00
Damian Mooyman 6c616f5f7a API Implement polymorphic sitetree link tracking (#2123)
* WIP Implement polymorphic sitetree link tracking

* Update unit tests
Merge SiteTreeTrackedPage into SiteTree directly

* Fix bugs and issues

* Fix support for file link tracking

* Add missing use

* Add back deprecated extension

* Remove obsolete belongs_many_many

* Update deprecations

* BUG Ensure non-SiteTree records support link tracking

* Safer changed check

* Shift file tracking test to assets module

* Better check for live stage on versioning

* Deprecate method

* Cleanup virtualpage

* Clear records on delete

* Ensure upgrade task occurs on draft

* fix linting
2018-04-06 15:53:57 +12:00
Damian Mooyman dde1349368
BUG Fix invalid css classname in virtualpage 2018-03-05 14:58:32 +13:00
Damian Mooyman c4b2782ce0
Automatic linting fixes 2017-12-19 10:31:25 +13:00
Loz Calver 7efe667a48 FIX: VirtualPage not using target page's template (fixes #2039) (#2041)
* FIX: VirtualPage refreshFromCopied creates duplicate URLSegments on first write

* FIX: VirtualPage not using target page's template (fixes #2039)
2017-12-06 11:59:30 +13:00
Damian Mooyman fa0b559a7b
Update usages of ClassInfo
Add missing unit tests for SiteTreeFolderExtension
2017-09-20 15:20:17 +12:00
Robbie Averill f2e22ef18a Replace use of Configurable stat() with config()->get(), will be deprecated in future 2017-08-23 09:46:46 +12:00
Damian Mooyman 2c54e33106
API Virtual pages now respect cascade_deletes on source page 2017-08-09 10:56:08 +12:00
Damian Mooyman c2c75aa9e3
Fix and upgrade all tests
Fix link tracking
2017-06-21 16:29:40 +12:00
Franco Springveldt c034ead6df FIX beforeUpdateCMSFields added to ErrorPage and VirtualPage
References #1756
2017-05-26 13:21:51 +12:00
Robbie Averill b394718b42 Remove create_function implementations, replace with closures 2017-05-22 17:36:19 +12:00
Damian Mooyman 23e1aa8c45 API Refactor inherited permissions (#1811) 2017-05-12 12:47:46 +12:00
Uncle Cheese 29805ee446 New namespaced i18n keys 2017-04-27 11:43:04 +12:00
Uncle Cheese 6fb1012eb8 Ran upgrader for lang files 2017-04-27 11:43:04 +12:00
Damian Mooyman d75a3cb0e9 API Update site tree hierarchy to use a MarkingSet and template 2017-04-12 08:57:09 +12:00
Damian Mooyman 5ce98aced2 API Upgrade to rely on silverstripe/versioned module 2017-03-28 10:35:14 +13:00
Mike Cochrane cb955f08f7 Fix non_virtual_fields being ignored
Fix non_virtual_fields and initially_copied_fields being ignored in classes that extent VirtualPage
2017-03-09 17:45:37 +13:00
Damian Mooyman 4885736b0e API Upgrade CMS to use new Config API 2017-02-28 11:30:22 +11:00
Damian Mooyman c7214b4dcd Auto-convert to psr2 2017-01-31 13:59:35 +13:00
Damian Mooyman bf58c5aef4 API Update to use new form submission handling (#1691) 2016-12-09 16:00:46 +13:00
Damian Mooyman d1dbe91247 API Update for DataObjectSchema changes 2016-10-06 18:10:54 +13:00
Loz Calver 62816e1ff8 Refactor VirtualPage, remove VirtualPage_Controller 2016-09-22 14:37:54 +01:00
Damian Mooyman a87a857a6e
Upgrade code for framework namespaces
Remove @package / @subpackage
Fix inifinite loop in VirtualPage_Controller
2016-09-07 16:29:26 +12:00
Damian Mooyman dab2a7ac9d
Split code into class-per-file
Add psr-4 directive in composer.json
2016-08-16 13:22:58 +12:00
Damian Mooyman 4dfa4f4473 Resolve issues with namespacing 2016-08-10 16:09:23 +12:00
Damian Mooyman 5bf364bedb Apply SilverStripe\CMS namespace 2016-08-10 16:09:23 +12:00
Damian Mooyman cb946508cf Move CMS classes and templates to namespaced locations 2016-08-10 16:09:23 +12:00