Commit Graph

89 Commits

Author SHA1 Message Date
Pieter Hollants
ffee8d4d35 GridFieldOrderableRows: Allow setting the reorder handles column's number
Until now the column with the handles starting the reorder action always
appeared as the first column at the left of the GridField. As a followup to
the previous change's for extra sort fields, this change allows specifying
a different column index. This way you can eg. move the handles behind a
category column whose sorting will always be enforced, thus giving the user
visual support in understanding the limits of drag-n-drop reordering.
2015-01-18 20:05:44 +01:00
Pieter Hollants
79972af8a2 GridFieldOrderableRows: Support extra sort fields
This change allows for the specification of extra sort fields that are to be
applied before the user-defined sort field's order. This is useful in
scenarios where a GridField is used with one or more "fixed" columns which
eg. categorize the entries and whose order is important but the user should
still be allowed to modify the order within a category.

This change affects the PHP code only, therefore the Javascript code will
still let the user drag rows into foreign "categories". However, after
dropping it the GridField will reload and the extra sort order will be
enforced again.
2015-01-18 20:05:41 +01:00
Marcus
9ff5de80d4 Merge pull request #78 from mattclegg/master
Include requirements for fields
2015-01-03 17:06:35 +11:00
mattclegg
2a8cf3a35f fix travis link 2014-12-28 10:11:38 +00:00
mattclegg
a0cac46fe5 Include requirements for fields 2014-12-28 10:03:04 +00:00
Marcus
600ae4bdf8 Merge pull request #75 from briceburg/editable-relfields
support and cast relationship references as ReadonlyField
2014-12-08 22:14:53 +11:00
Brice Burgess
c7fb5a5203 support and cast relationship references as ReadonlyField 2014-12-08 00:34:21 -05:00
Marcus
187fa61d7a Merge pull request #74 from briceburg/multiclass-setItemRequestClass
allow specification of GridFieldAddNewMultiClass handler
2014-12-08 08:44:55 +11:00
Brice Burgess
7e0a488fdf allow specification of GridFieldAddNewMultiClass handler through
setItemRequestClass convention
2014-12-06 17:04:29 -05:00
Marcus
1a56a467fc Merge pull request #58 from sheadawson/patch-1
FIX bug with LiteralField for column content
2014-12-05 12:38:24 +11:00
Marcus
052ad88b20 Merge pull request #72 from colymba/static-anchor-icon
Drag handle icon is always visible
2014-12-03 14:48:39 +11:00
Thierry François
077125a30a Drag handle icon is always visible 2014-12-02 17:05:01 +02:00
Marcus Nyeholt
7ca83e9cdd Updated maintainers to hopefully take packagist ownership... 2014-12-01 15:36:22 +11:00
Andrew Short
0676085067 Update package details. 2014-11-28 00:04:43 +11:00
Andrew Short
7bf3cf9a31 Merge pull request #61 from adam-stead/master
Check from ExtraFields in getSortTableClauseForIds
2014-07-09 22:49:12 +10:00
Adam
5ddbf9cd43 Check from ExtraFields in getSortTableClauseForIds
if no extrafields are on the many_many relationship error generated same fix as chillu on getSortTable
2014-07-09 22:47:11 +10:00
Andrew Short
1a521a3ce0 Merge pull request #54 from jyrkij/fix-48
Update only current record for many_many relations
2014-06-13 11:43:50 +10:00
Shea Dawson
3f44a865a0 FIX bug with LiteralField for column content
This change allowed me to have a column with a CMSThumbnail in a LiteralField
2014-06-02 14:46:01 +10:00
Andrew Short
45eb7954a6 Merge pull request #55 from derRobert/master
Basic german translation
2014-04-06 14:36:04 +10:00
Robert Schwandner
21ade9a6f3 Basic german translation 2014-04-05 16:30:05 +02:00
Jyrki Lilja
128737d12a Update only current record for many_many relations
Fixes #48 but needs more testing. I only checked that it works for one case!
2014-04-04 11:09:05 +03:00
Andrew Short
3851012b4b Merge pull request #53 from tractorcow/pulls/travis-status
Travis build status icon
2014-04-03 11:35:37 +11:00
Damian Mooyman
675a55f69f Travis build status icon 2014-04-03 08:12:37 +13:00
Andrew Short
db94111d8c Merge pull request #50 from silverstripe-iterators/pulls/array_key_exists-sortTable
Fixed array_key_exists() usage in OrderableRows
2014-03-10 21:19:33 +11:00
Ingo Schommer
793f6d96ec Fixed array_key_exists() usage in OrderableRows 2014-03-08 22:18:01 +13:00
Andrew Short
6727eb3a1d Ensure extra field values are correctly casted.
Closes #11.
2014-02-26 14:02:07 +11:00
Andrew Short
796bd0ad68 Add a sorting on before write example.
Closes #44
2014-02-14 09:34:13 +11:00
Andrew Short
5eec0f70b4 Merge pull request #39 from nyeholt/master
FIX Fixed issue where items were created without being run through DI
2013-11-21 20:19:50 -08:00
nyeholt
49a75b6239 FIX Fixed issue where items were created without being run through DI 2013-11-22 15:00:08 +11:00
Andrew Short
56422aede2 Add test for the multi class classes getter. 2013-11-14 23:43:38 +11:00
Andrew Short
f1eadd549b Sort the automatically generated list of classes. 2013-11-14 23:43:23 +11:00
Andrew Short
6247d4f4ec Make the classes getter public. 2013-11-14 23:36:57 +11:00
Andrew Short
de47c5d3a3 Add missing return tag. 2013-11-14 23:36:28 +11:00
Andrew Short
b13d3367ff Remove extraneous slash. 2013-11-14 23:10:00 +11:00
Andrew Short
05926e3288 Merge pull request #35 from nedmas/patch-1
FIX: Include .action class to add margin styles
2013-11-14 04:04:34 -08:00
Tom Densham
f522676c21 FIX: Include .action class to add margin styles 2013-10-29 16:37:25 +00:00
Andrew Short
9abd92bd7f Use properly constructed links in the add new multi class components.
This means that the component now works with URLs which include
parameters, such as when translatable is being used. Closes #30.
2013-10-09 20:34:47 +11:00
Andrew Short
79e8d9a0dc Merge pull request #29 from dospuntocero/patch-1
Create es_ES.yml
2013-10-08 06:47:58 -07:00
Francisco arenas
9ad9e204fa Create es_ES.yml 2013-10-08 09:40:15 -04:00
Andrew Short
348e64e915 Merge pull request #26 from mediaclinic/master
Finnish language files
2013-10-07 15:33:54 -07:00
Andrew Short
82bb0524b3 Avoid manually constructing URLs.
This means that URLs with query parameters are no longer incorrectly
created.

Closes #6, #23, #27.
2013-10-08 09:30:59 +11:00
Shrike
c1836e1bda Finnish language files 2013-09-06 13:39:57 +03:00
Andrew Short
712c5070e9 Add license file.
Closes #25.
2013-09-02 20:03:53 +10:00
Andrew Short
a674677bd3 Merge pull request #24 from kinglozzer/patch-1
Update composer dependencies
2013-08-22 03:51:47 -07:00
Loz Calver
d1daa344a3 Update composer dependencies
https://groups.google.com/forum/#!topic/silverstripe-dev/kCHSHLZp2Yg
2013-08-22 11:50:51 +01:00
Andrew Short
a7c357d44d Merge pull request #22 from camspiers/dirname-support
Fix - Support for module to be named other than "gridfieldextensions"
2013-07-13 06:11:45 -07:00
Andrew Short
b4d6b61ef7 Fix typo in documentation (closes #19, thanks MattyBalaam) 2013-07-11 12:45:22 +10:00
Andrew Short
aad2b973ce Add allowed actions definitions 2013-07-11 12:40:13 +10:00
Andrew Short
2fefd3576b Add travis support 2013-07-11 12:29:03 +10:00
Andrew Short
4ed382e7a0 Add a test for GridFieldOrderableRows::getSortTable 2013-07-11 12:28:38 +10:00