Commit Graph

147 Commits

Author SHA1 Message Date
Stig Lindqvist
587de186d0 Merge pull request #90 from halkyon/redirectorpage_changes
BUGFIX Adding RedirectorPage.js to cms module (was in sapphire) and swapping out old behaviour.js usage
2012-04-11 04:10:01 -07:00
Sam Minnee
7213d2b7dc MINOR: Clarified meaning of SiteTree:: 2012-04-11 15:48:17 +12:00
Sean Harvey
240627b504 BUGFIX Adding RedirectorPage.js to cms module (was in sapphire) and
fixing to use entwine/jquery instead of old behaviour
2012-04-11 15:32:41 +12:00
Ingo Schommer
f021b9eec1 BUGFIX Writing version in SiteTree->doRestoreToStage, regression from 9451993d (fixes #7107) 2012-04-10 12:27:08 +02:00
Ingo Schommer
76f4e6d93b Merge branch 'master' into integration 2012-04-09 21:08:37 +02:00
Wolf Vollprecht
a18b9bd85e ENHANCEMENT: Flyout menu to directly choose the pagetype one wants to add. 2012-04-09 21:08:15 +02:00
Normann Lou
7d9873472b ENHANCEMENT SSF-124 customise displayed fields of page list view, add children list view links 2012-04-05 17:33:37 +12:00
Normann Lou
c1b248e2cf ENHANCEMENT SiteTree->getStatusFlags() which makes SiteTree->getTreeTitle() extensible 2012-04-04 23:02:53 +02:00
Ingo Schommer
de573e087d MINOR Using late static binding instead of Object::create() calls 2012-04-04 18:29:11 +02:00
Ingo Schommer
651441225f Merge pull request #80 from halkyon/e_strict_support
Fixes to method arguments in cms classes for E_STRICT support
2012-03-28 02:48:17 -07:00
Ingo Schommer
1827dc6727 API CHANGE Removed SiteTree->HomepageForDomain and related functionality ($write_homepage_map and generate_homepage_domain_map()), use new 'homepagefordomain' module instead (fixes #6902) 2012-03-27 14:50:09 +02:00
Sean Harvey
0ea9451014 MINOR Fixes to method arguments in cms classes for E_STRICT support. 2012-03-27 21:42:54 +13:00
Ingo Schommer
04a195b111 MINOR Stop using FormResponse, which has been removed from core 2012-03-09 23:20:09 +01:00
Ingo Schommer
1d6d24671c Merge branch 'integration'
Conflicts:
	code/controllers/AssetAdmin.php
2012-03-08 20:13:53 +01:00
Ingo Schommer
12124fdae0 MINOR Simplified "Meta" field labelling in SiteTree->getCMSFields() (removed header) 2012-03-07 13:48:52 +01:00
Ingo Schommer
b29a7540a2 MINOR Fixed usage of deprecated FormField->describe() API 2012-03-07 13:32:44 +01:00
Sam Minnée
703ac7b47e Merge pull request #62 from silverstripe-scienceninjas/master
BUGFIX: SiteTree#getCMSFields would only calculate local variable $linkedPages if ID was valid, but would then refer to that variable regardless
2012-03-05 13:08:22 -08:00
Ingo Schommer
e0a67a80c7 BUGFIX Restored old permission code model, broken due to new controller structure. Introduced LeftAndMain::$required_permission_codes as a way to control permissions independently of subclasses, and "cluster" multiple classes under a single code. 2012-03-05 18:42:44 +01:00
Ingo Schommer
e938c60e9a ENHANCEMENT Using chosen.js selection instead of a TreeDropdownField to select groups in SiteConfig->getCMSFields() and SiteTree->getCMSFields() 2012-03-05 18:42:42 +01:00
Fred Condo
10c171f1bb ENHANCEMENT #6828 (Trac): Add a canonical link tag to the meta tags of Virtual Pages
See http://support.google.com/webmasters/bin/answer.py?hl=en&answer=139394
2012-03-02 10:59:15 -08:00
Ingo Schommer
f620f9b46c MINOR Using <button> tags for CMS UI, and new 'data-icon' HTML5 attribute to denote icons 2012-02-17 15:30:37 +01:00
Hamish Friedlander
3b0ab9b0a0 BUGFIX: SiteTree#getCMSFields referenced $linkedPages even if $linkedPages wasnt set 2012-02-17 12:06:12 +13:00
Ingo Schommer
1301df00d6 MINOR Button styling for "Settings" form 2012-02-16 12:35:13 +01:00
Cam Findlay
21289128bb MINOR SiteTreeURLSegmentField has new methods to aid in displaying URL prefix and secondary information text (fixes #6852) 2012-02-14 11:12:47 +01:00
Fred Condo
d99e3a0927 Code cleanup: removed trailing ?> markers per code standard.
All cms module except lang directory.
2012-02-13 12:48:41 -08:00
Will Rossiter
8fe767b5f2 FEATURE: move breadcrumbs out to a customizable template 2012-02-11 15:13:51 +13:00
Will Rossiter
95f35cc0d2 Merge pull request #59 from simonwelsh/master
BUGFIX Page location radio buttons update ParentID accordingly
2012-02-10 17:18:25 -08:00
Simon Welsh
a519411629 BUGFIX Page location radio buttons update ParentID accordingly 2012-02-11 14:13:38 +13:00
Jeremy Thomerson
3c3b27d3cb ENHANCEMENT Allow the homepage to have a different URL
If you changed the URL segment for your homepage to anything other than 'home'
a new homepage would be created every time you ran a dev/build.  This commit
allows you to call RootURLController::set_default_homepage_link('something');
to change the URL segment for your homepage to 'something'.  After doing this
the dev/build process will no longer create a homepage if you already have a
page with 'something' as the URL segment.

There was a discussion of needing this at
http://www.silverstripe.org/general-questions/show/12253
2012-02-03 03:24:00 +00:00
Ingo Schommer
36a867f737 MINOR Documentation 2012-01-24 14:20:55 +01:00
Jeremy Thomerson
82bb4ca2f5 Add a deprecation-friendly version of the prepopulate_permission_cache function
Add a function with the old function name that adds a deprecation warning for
users but forwards the call to the renamed function for backwards-compatibility.
2012-01-23 15:23:42 -05:00
Jeremy Thomerson
a5c6bc6ee1 Fix typo in function name
There was a function named "SiteTree::prepopuplate_permission_cache" which
should be "SiteTree::prepopulate_permission_cache".
2012-01-23 14:28:55 -05:00
Wolf Vollprecht
f8f5a36640 ENHANCEMENT 6631 Visual grouping of FormAction 2012-01-18 03:18:11 +01:00
Ingo Schommer
a570e2f2a0 API CHANGE Publish ex-VirtualPage records when their page type changes, propagate type change to live (AIR-78) BUGFIX Remove extraneous database rows when changing a page from VirtualPage to another type (AIR-78) 2012-01-14 13:07:48 +01:00
Ingo Schommer
9101a75123 MINOR Code formatting and docs in VirtualPage (no functional changes) 2012-01-14 11:24:40 +01:00
Ingo Schommer
0e4e8034d6 BUGFIX Validate SiteTree::$can_be_root on saving, as well as for VirtualPage originals (AIR-80) 2012-01-14 11:20:54 +01:00
Ingo Schommer
062e3b6a0c MINOR Provide addition tree hints for VirtualPage original page type (AIR-81) 2012-01-14 11:13:17 +01:00
Ingo Schommer
87c318d168 BUGFIX Don't create new version on related VirtualPage records in SiteTree->onAfterWrite() when the write was triggered through writeWithoutVersion(). Use a new $_nextWriteWithoutVersion flag replacing the -1 Version number for this purpose (AIR-97) (see similar commit in sapphire) 2012-01-14 11:11:21 +01:00
Ingo Schommer
4140ddad5e MINOR Using new DataList API for DependentPages in SiteTree->getCMSFields() 2012-01-04 18:06:04 +01:00
Ingo Schommer
e35991b363 MINOR Misc styling fixes around dialogs and "add page" styling 2012-01-03 17:57:04 +01:00
Ingo Schommer
7a1e25ba71 MINOR Shorter tree title badges 2011-12-29 10:30:21 +01:00
Wolf Vollprecht
afecc6b20b ENHANCEMENT: #6579 Show page status in page tree 2011-12-22 15:11:41 +01:00
phalkunz
ac79934077 ENHANCEMENT Render page tree icons as stylesheets rather than $_TREE_ICONS JS definitions. Removed file/folder swapping of SiteTree::$icon, use relative file path including extension instead. 2011-12-19 14:03:42 +01:00
Will Rossiter
e17b4a185a MINOR: update PageTypes to use updated tab path for CMS fields. Fixes #6811 2011-12-17 16:46:26 +13:00
Ingo Schommer
9540e248e7 MINOR Removed unnecessary variable declaration in SiteTree (thanks mattclegg) 2011-12-17 01:50:15 +01:00
Ingo Schommer
020f480256 MINOR Using <span> instead of <del>/<ins> in SiteTree->getTreeTitle() to avoid conflicting styles with jstree 2011-12-12 23:10:48 +01:00
Ingo Schommer
b4eda409c2 ENHANCEMENT Replaced client side URL filtering in CMS with ajax callbacks to new SiteTreeURLSegmentField, in order to align with extended server side logic (and avoid pre-filtering values too heavily before passing them to the server). Removed suggestions from client side user confirmation. 2011-11-14 15:29:19 +01:00
Ingo Schommer
81aeb8d378 ENHANCEMENT Using new URLPathFilter API in SiteTree->generateURLSegment(), allowing customisation of URL filtering and transliteration 2011-11-14 12:28:25 +01:00
Sam Minnee
5b8f6edaec MINOR: Use SS_Map::keys() and SS_Map::values() instead of array_keys() / array_values() 2011-10-29 17:41:52 +13:00
Sam Minnee
1f34973da1 MINOR: Use leftJoin() / innerJoin() instead of join(). 2011-10-29 17:41:52 +13:00
Sam Minnee
3acffaa5bb MINOR: Removed use of deprecated FieldSet in favour of FieldList. 2011-10-29 17:41:51 +13:00
Sam Minnee
4e7cb308d5 MINOR: Use Deprecation class to indicated deprecated methods in cms. 2011-10-29 17:41:06 +13:00
Sam Minnée
d63bcb63ae Merge pull request #30 from frankmullenger/master
Removing Unpublish button from CMS when canDeleteFromLive() returns false
2011-10-28 21:34:13 -07:00
Stig Lindqvist
d799c80cc5 API CHANGE Changed name from DataObjectSet to either ArrayList or DataList 2011-10-27 20:24:45 +02:00
Stig Lindqvist
05e90838c0 API CHANGE Switch usage from FieldSet to FieldList 2011-10-27 20:24:45 +02:00
Frank Mullenger
916309e6c6 BUGFIX returning false from canDeleteFromLive() for a DataObject did not remove the Unpublish button from CMS, but the Unpublish action returned an error. Fixes #6731. 2011-10-08 17:14:54 +13:00
Ingo Schommer
f98bc8480c BUGFIX Respect writeWithoutVersion() when updating VirtualPage relationships in SiteTree->onAfterWrite() (AIR-97) 2011-10-07 11:12:52 +02:00
Ingo Schommer
21d10ad32f BUGFIX Consistently returning a record from VirtualPage->CopyContentFrom(), even if pointing to a non-existant ID (AIR-77) 2011-10-07 11:09:10 +02:00
Sam Minnee
5d235fa9f7 ENHACEMENT: Improved caching of permissions for improved CMS perfromance for non-admins (merged from r102278) 2011-10-07 10:36:56 +02:00
Sam Minnee
d64e847534 BUGFIX: Don't turn virtual pages green if their source is deleted from draft and then reverted (merged from r100926 and r100928) 2011-10-07 10:07:38 +02:00
Ingo Schommer
f368686adc MINOR Documentation 2011-10-07 10:06:06 +02:00
Sam Minnee
6fc01394a6 API CHANGE: Added VirtualPage::$non_virtual_fields and VirtualPage::$initially_copied_fields for configuring the behaviour of virtual pages. (merged from r100463) 2011-10-07 10:05:32 +02:00
Ingo Schommer
987eedf9ba BUGFIX Don't fail SiteTree::batch_permission_check() is no published pages exist 2011-10-07 09:38:35 +02:00
Ingo Schommer
e26d249d60 BUGFIX Consistently resetting Subsite::$disable_subsite_filter to its original state (if the module is installed) 2011-10-07 09:38:11 +02:00
Ingo Schommer
6ab1340680 BUGFIX Using SiteTree->getSiteConfig() instead of SiteConfig::current_site_config() in SiteTree::batch_permission_check() to avoid cases where multiple variances of SiteConfig need to be considered (e.g. when using the subsites module) (AIR-59) 2011-10-07 09:34:53 +02:00
Ingo Schommer
1fcc987b78 MINOR Documentation for SiteTree::batch_permission_check() 2011-10-07 09:34:28 +02:00
Ingo Schommer
45f857e042 MINOR Removing class comparison in SiteTree->canCreate() (mainly in order to enable overloading via SiteTreeSubsite->canCreate()) 2011-10-07 09:31:29 +02:00
Ingo Schommer
4903fad537 BUGFIX Checking for SiteTree:: in SiteTree->getClassDropdown() (AIR-20) 2011-10-07 09:29:03 +02:00
Ingo Schommer
922dd126c6 MINOR Allowing TRUE vetoes in SiteTree->augmentValidURLSegment() (in addition to the existing FALSE vetoes) 2011-10-07 09:19:40 +02:00
Ingo Schommer
2dd96a4050 API CHANGE Checking for SiteTree::$allowed_children in SiteTree->validate() (was only checked via JavaScript before).
BUGFIX Ensure that VirtualPage $allowed_children are checked on original classes to avoid allowing more than necessary (AIR-38)
2011-10-07 08:59:23 +02:00
Ingo Schommer
d03724e116 BUGFIX Disable subsites filtering in File->BackLinkTracking() if module is installed (AIR-66) 2011-10-07 08:59:23 +02:00
sminnee
e57be3f6e4 API CHANGE Always allow users with ADMIN permissions to view or edit SiteConfig
git-svn-id: http://svn.silverstripe.com/modules/sapphire/branches/airnz/iteration3@89049 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-10-07 08:59:23 +02:00
ajshort
a54963d954 API CHANGE: Replaced DataObjectSet instances with ArrayList. 2011-10-07 08:51:54 +02:00
Sam Minnee
ddcbd650d4 BUGFIX: Fix bugs introduced by the expectation of having a DataModel. 2011-10-07 08:51:54 +02:00
Sam Minnee
9398fcaaa1 BUGFIX: Fix SiteTree broken link correction to handle the fact that relations aren't cached. 2011-10-07 08:51:53 +02:00
Sam Minnee
f2ed229be4 API CHANGE: Removed context object - it's a hack. 2011-10-07 08:50:52 +02:00
Sam Minnee
d3ca4dac5b BUGFIX: Updated models to suit minor changes in the new ORM. 2011-10-07 08:50:51 +02:00
Ingo Schommer
d0b419c5a9 ENHANCEMENT Showing class names in ClassDropDown in not en_US (fixes #6325, thanks dhensby) 2011-09-19 14:40:01 +02:00
Ingo Schommer
5de2ba5628 MINOR Removing executable flag from all files (thanks miiihi) 2011-09-18 22:04:42 +02:00
Ingo Schommer
4eebf7f0be ENHANCEMENT Shortened CMS button labels: "Delete from the draft site" -> "Delete draft", "Delete from the published site" -> "Delete", "Save and Publish" -> "Save & Publish". Renamed "Save" to "Save draft" 2011-08-12 17:06:35 +02:00
Ingo Schommer
ab3fe3e638 ENHANCEMENT Implementing CMSPreviewable in SiteTree 2011-08-12 17:06:35 +02:00
Will Rossiter
9c40e495e2 MINOR: altered layout for SiteTree->URLSegment in getCMSFields() 2011-08-01 16:23:00 +12:00
Ed
ebb1e0f370 MINOR Additional HTML for tree styling in SiteTree->getTreeTitle() 2011-07-08 15:36:31 +02:00
Ingo Schommer
bb0574e214 MINOR Extra CSS classes in SiteTree->getCMSActions() 2011-07-08 15:36:31 +02:00
mattclegg
2a13fa2b85 MINOR SiteTree documentation 2011-05-28 10:02:52 +12:00
Ingo Schommer
c196c47c52 MINOR Temporarily disabled deprecation notice in SiteTreeDecorator, to be re-enabled once we're in beta 2011-05-19 11:11:48 +12:00
Ingo Schommer
8fe9283181 ENHANCEMENT Adding page ID as metadata in SiteTree->MetaTags() in order to provide context for CMS preview of pages 2011-04-28 22:49:35 +12:00
Ingo Schommer
e2f4dd0b44 ENHANCEMENT Added SiteTree::$description to provide more context for content authors selecting a new page type 2011-04-28 22:49:34 +12:00
Ingo Schommer
53a62e7b8c MINOR Moved 'access' field labels in SiteConfig->getCMSFields() and SiteTree->getCMSFields() from headlines to actual label elements in order to manage presentation easier 2011-04-28 22:49:33 +12:00
Ingo Schommer
8bee7a1290 MINOR Added markup semantics around constructive/destructive actions to SiteTree->getCMSActions() 2011-04-28 22:49:33 +12:00
Ingo Schommer
7a50608e24 API CHANGE Splitting off "Behaviour" and "Access" tabs from SiteTree->getCMSFields() into SiteTree->getSettingsFields(). Adjusting functionality to split of SiteTree->getCMSFields() into getSettingsFields(), and new tab paths ("Root.Content" instead of "Root.Content.Main") 2011-04-28 22:48:55 +12:00
Ingo Schommer
53ed7c496e MINOR Disallow nested ErrorPage instances via canAddChildren() 2011-04-28 22:48:55 +12:00
Ingo Schommer
c1d5e9baa7 API CHANGE Removed SideReport_ToDo report and "To-do" tab on SiteTree, please use the new silverstripe-page-todo module instead 2011-04-28 22:48:55 +12:00
ajshort
57f47af6c0 Merge remote-tracking branch 'upstream/master' 2011-04-26 11:07:11 +10:00
Brian Waters
c9b5ae8b41 API CHANGE: Added SiteTree::get_create_default_pages().MINOR: Error pages no longer created on /dev/build if SiteTree::get_create_default_pages() is false. Fixes #6587. 2011-04-23 17:52:53 +12:00
ajshort
6462c59f0f API CHANGE: Renamed SiteTreeDecorator to SiteTreeExtension.
MINOR: Replaced references to decorators with extensions.
2011-04-15 19:37:15 +10:00
Ingo Schommer
60abe5fb9f MINOR Moved files into a more logical structure in cms/code 2011-03-30 20:03:44 +13:00