Commit Graph

15 Commits

Author SHA1 Message Date
Ingo Schommer
f9a5601fa3 BUG Enforce "add page" restrictions, improve UI (fixes #7879)
- Fix support for $allowed_children
- Added note when type selection is restricted
- Removed overly complex specs for "allowed children",
the data should be inferred from "disallowed children"
- Added support for SiteTree::$can_be_root
- Return raw JSON (not entity-encoded) from CMSMain->SiteTreeHints()
- Added tests for CMSMain->SiteTreeHints()
2012-12-03 16:52:17 +01:00
jean
45819cfba2 FIX 7856 Show the Create button as disabled if no pagetypes are available for page creation 2012-09-11 14:56:13 +12:00
Ingo Schommer
f94f03defe MINOR Removed unused jQuery.dialog creation in CMSMain.AddForm.js, which causes mem leaks (now uses dedicated pages/add UI) 2012-06-13 23:36:46 +02:00
Ingo Schommer
8847506322 BUGFIX Selecting correct parent when adding a new page (fixes #7188) 2012-06-03 19:54:14 +02:00
Mateusz Uzdowski
00734f5498 BUGFIX: add missing onunmatches causing exceptions in entwine 2012-05-18 14:33:17 +12:00
Mateusz Uzdowski
b75483e1da BUGFIX: add missing _super calls to all matchers and unmatchers
Otherwise some matchers might not be triggered as expected.
2012-05-18 12:23:30 +12:00
Ingo Schommer
6ec6b107ca BUGFIX Don't require ParentModeField in CMSpageAddController submissions, to allow for easier programmatical submission of "add page" form (via CMS tree). Reset any selected parent nodes in the interface instead 2012-05-07 14:30:08 +02:00
Ingo Schommer
2814aeb249 MINOR Fixed variable declaration in CMSMain.AddForm.js 2012-01-22 11:58:24 +01:00
Ingo Schommer
e34f56dcc6 MINOR Better failsafes for tree hints (allows add if hint for class is if not defined) 2012-01-09 21:20:58 +01:00
Ingo Schommer
9d1822e7c6 MINOR Don't allow page type selection in add form when radio button is disabled 2012-01-06 16:54:16 +01:00
Ingo Schommer
6887b88099 MINOR Selection bugfixes for CMSMain.AddForm.js, more efficient tree metadata 2012-01-05 23:17:12 +01:00
Ingo Schommer
89abb29047 MINOR Fixed reading of javascript metadata in CMSMain.AddForm.js 2011-10-29 22:04:40 +02:00
Ingo Schommer
2ac0ea78cf MINOR Don't emulate built-in radiobutton behaviour in CMSMain.AddForm.js 2011-10-29 22:04:39 +02:00
Ingo Schommer
26151f2e4c ENHANCEMENT Limiting page types based on SiteTree::$allowed_children in CMSMain.AddForm.js 2011-05-08 23:36:55 +12:00
Ingo Schommer
9a09aaf42b ENHANCEMENT Changed CMSMain->AddForm() to a modal dialog, showing page types and their descriptions as radiobuttons rather than a dropdown 2011-04-28 22:49:34 +12:00