Commit Graph

35 Commits

Author SHA1 Message Date
Sean Harvey
bf1390f0f8 BUG Fixing saving of Subsite records from SubsiteAdmin
LeftAndMain assumes tree_class exists, and tries to use it,
but causes a non-object error because of querying with a NULL
class name.
2013-02-04 14:49:51 +13:00
Ingo Schommer
82f1d980e8 Merge remote-tracking branch 'origin/0.3'
Conflicts:
	code/SubsiteAdmin.php
	code/extensions/LeftAndMainSubsites.php
	code/extensions/SiteTreeSubsites.php
	code/model/Subsite.php
	composer.json
	javascript/SubsitesTreeDropdownField.js
	lang/en_US.php
	tests/SubsiteAdminTest.php
	tests/SubsiteTest.php
	tests/SubsiteTest.yml
	tests/SubsitesVirtualPageTest.php
2013-01-03 21:03:26 +01:00
Ingo Schommer
f909aad7b4 API CHANGE Removed Subsite_Template subclass, as it unnecessarily duplicates the Subsite->duplicate() logic in Subsite_Template->createInstance(). It also arbitrarily limits duplication of subsites to templates. 2013-01-03 14:10:08 +01:00
Sean Harvey
488ea71c45 Removing unncessary end PHP tags from subsites code 2012-10-12 11:08:24 +13:00
Kirk Mayo
e7c5dd5d93 BUG: Fixing creating subsites from templates trac/7318 2012-07-18 12:21:35 +12:00
UndefinedOffset
598b0253f5 BUG: Coding convention updates 2012-07-16 11:21:30 +12:00
Ed
c9d3a1f854 BUG: More SS 3.0 modifications
Fixes for SS 3.0 beta 3

Fixed compatibility issues with ss3.0 rc1

fixed potential issue caused by the from array format changing in 3.0

Fixed strict standards warnings

Fixed strict notice "Only variables should be passed by reference"

Fixed strict notice "Only variables should be passed by reference"

Fixed strict notice caused by SubsiteAdmin not declaring all of the properties for getCMSFields()

Made Subsite::accessible_sites() static

Fixed issue caused when trying to add a domain before saving for the first time

Fixed undefined property ParentID
2012-07-16 11:21:24 +12:00
Ed
2ef72b374c BUG: Modifying the module to work with SS 3.0
Replaced deprecated DataObjectDecorator with DataExtension

Fixed hard crashes in the cms

Updated to support new LeftAndMain template structure

Made the subsites model admin functional

Moved the LeftAndMain_Menu template up a directory so it overrides the core

Fixed some errors caused by changes to the framework

Re-organized the code folder

Fixed permission issue causing to default to first subsite regardless if it is the default or not

Fixed crashes on the subsite virtual page when creating/editing

Removed toDropdownMap() calls replacing with map()

Fixed the URLSegment field on subsites

Fixed error when detecting subsite for a domain

Improved styles on the subsite dropdown

Updated LeftAndMain_Subsites.js to work with jQuery entwine

Started porting the SubsitesTreeDropdownField.js to use jQuery entwine and work with the new TreeDropdownField.js

Fixed issue causing crash when viewing a page who is linked to by a subsite virtual page

Removed unused methods on SubsitesTreeDropdownField.js

Re-added classes that were moved

Fixed hard crash after saving caused by the many_many definition on SiteTreeSubsites

Replaced deprecated DataObjectSet creation with ArrayList

Compatibility fixes with SS 3.0 beta 2

Fixed crash in cms caused by no parameter being passed to the SubsiteReportWrapper constructor

Proper fix for report wrapper

Removed table list field in favor of a basic grid field

Fixed updateCMSFields() for file subsites

Migrated translations to yml

Fixed issue causing the current page to not get cleared when changing subsites in the cms

Fixed virtual page icon

Fixed language files issue
2012-07-16 11:18:38 +12:00
Tom Rix
966776df5a BUGFIX correct classname 2010-03-04 22:52:16 +00:00
Tom Rix
2eb808720a BUGFIX removed invalid path, would break form actions (from r90459) (from r96331) 2010-03-01 22:30:56 +00:00
Tom Rix
6d7cf28c11 BUGFIX: Fixed response text bug in subsite creation. (from r94563) 2010-03-01 21:41:11 +00:00
Tom Rix
e91ba528b6 BUGFIX: Fixed name of subsite admin area - it is now 'Subsites', and will survive an i18ncollectortask execution. (from r92195) 2010-03-01 21:40:55 +00:00
Tom Rix
45efdc80c0 MINOR subsite admin saving fix (from r90471) 2010-03-01 21:40:21 +00:00
Tom Rix
2f019ea6ab BUGFIX removed invalid path, would break form actions (from r90459) 2010-03-01 21:40:14 +00:00
Tom Rix
8d04bd6d90 BUGFIX gnarly recursion error when adding a subsite (from r82410) 2010-03-01 02:56:07 +00:00
Tom Rix
68dfd71c5e ENHANCEMENT: Updated subsite admin to use ModelAdmin, to be more in line with other parts of SilverStripe. (from r80861) 2010-03-01 02:53:00 +00:00
Tom Rix
9a556a31f9 2010-03-01 02:48:45 +00:00
Geoff Munn
f11efe1362 API CHANGE: column names quoted properly 2009-11-02 03:00:18 +00:00
Sean Harvey
35078375f7 BUGFIX Fixed SQL queries that don't work when ANSI SQL is enabled
BUGFIX Fixed MySQL specific query in SubsiteAdmin and replaced with ORM operations instead to work independent of the database used
2009-07-14 01:41:51 +00:00
Sam Minnee
b646a104f1 Merged from branches/0.1 2009-05-04 05:03:44 +00:00
Sam Minnee
3acc4aae80 BUGFIX: Removed project-specific code.
BUGFIX: Don't throw an error if you try to create a template without a subdomain
2009-02-24 22:36:09 +00:00
Ingo Schommer
5987f151d4 MINOR Documentation for subsites module
BUGFIX Added Subsite::allowed_domains() which selects base_domain() if no custom domains are specified. This avoids having an empty dropdown in the URL domain selection dropdown in SubsitesAdmin
2008-11-24 03:22:01 +00:00
Sam Minnee
b530838b4c BUGFIX: Get subsites working with 2.3
BUGFIX: Allow creation of sites and templates withou a starting template
FEATURE: Allow Theme dropdown in subsite admin to choose the theme from available themes
2008-11-19 23:25:43 +00:00
Ingo Schommer
b1ac00bcde BUGFIX Adjusted StatisticsAdmin to new CMS Menu generation (see #2872) 2008-11-02 22:23:01 +00:00
Sam Minnee
ea940fcd0d Exclude subsites without titles from site lists 2008-02-26 03:14:27 +00:00
Sam Minnee
0b85efb117 Removed AdminName and AdminEmail fields from subsite creation 2007-12-10 02:32:24 +00:00
Sam Minnee
5c34b67a39 Enforce Name & Domain to be filled out when creating a subsite 2007-11-27 01:07:54 +00:00
Sam Minnee
272cdd444a 2007-10-11 03:05:58 +00:00
Sam Minnee
3ab4cb3780 Fixed notice level error 2007-09-04 04:12:57 +00:00
Sam Minnee
538cfeda6a Added Subsite::duplicate()
Added duplication 'create copy' button to subsites and templates
Templates shown with a * in the search results list
Ability to create new templates as well as new subsites
2007-08-28 22:29:44 +00:00
Sam Minnee
5aff60efb5 More testing and debugging 2007-08-21 01:38:20 +00:00
Sam Minnee
dd4045b2bb Added tests and fixed associated bugs in the subsite admin section 2007-08-20 22:37:43 +00:00
Sam Minnee
13aa9894b8 Test commit 2007-08-18 11:38:11 +00:00
Sam Minnee
b64b14554c Improved subsite-admin search to support unit testing 2007-08-17 05:49:19 +00:00
Sam Minnee
5e9b67216f Initial alpha version of the subsites module 2007-08-16 06:38:29 +00:00