Commit Graph

53 Commits

Author SHA1 Message Date
Dave Collins
cf278fd8e2 Save default DownloadBehaviour on a DMSDocument when initially uploading a new one
- array key check for behavior before using
2018-07-06 08:59:10 -04:00
Dave Collins
52772ae879 documentation fix for DownloadBehavior fix 2018-07-05 12:06:14 -04:00
Dave Collins
5561e4a7af minor formatting fix 2018-07-05 12:04:33 -04:00
Dave Collins
71c09244f7 Make sure default DownloadBehavior is stored when initially uploading a document 2018-07-05 12:00:30 -04:00
Ian Walls
dfbddb49a2
Add support for GridfieldOrderableRows
GridfieldExtensions' GridfieldOrderableRows is functionally quite similar (if not identical) to GridFieldSortableRows, and not all developers may want to support both modules.  This commit adds fallback support for sorting Document Sets using GridfieldOrderableRows if it is installed, and GridFieldSortableRows is not.

To test:
1. Uninstall GridFieldSortableRows (or start with an install without it)
2. Install GridFieldExtensions
3. Create/Open a Document Set
4. Make sure there are multiple files within.
5.  Drag/drop reorder without errors
2018-06-18 15:14:08 -04:00
Robbie Averill
b7a3a1df6e Merge branch '2.0' into 2.1 2017-12-07 15:45:42 +13:00
Robbie Averill
8efedf3158 FIX Escape file path before loading file from filesystem 2017-12-07 12:40:11 +13:00
Robbie Averill
0e84799f59
FIX Ensure actions panel keys and values have possible HTML escaped 2017-12-06 13:40:46 +13:00
Mateusz Qunabu
a61d294419 Allow more sophisticated trackview
adds `$this->extend('trackView');` into `trackView` function so developers can work on more sophisticated  track view of downloaded file, eg how had downloaded or when.
2017-08-16 11:23:59 +02:00
Franco Springveldt
e2eead8888 FIX Removed duplicate permission check + SITETREEE_VIEW_ALL permission from DMSDocument::canEdit 2017-06-29 17:30:45 +12:00
Franco Springveldt
79da01513e FIX document and documentset permissions 2017-06-14 11:18:09 +12:00
Robbie Averill
14071eee3c API Rename DMSDocument::getFileName to getFilename 2017-06-08 09:54:44 +12:00
Franco Springveldt
5824c1b0eb NEW info notices added to QueryBuilder 2017-06-07 10:30:44 +12:00
sachajudd
5bea2fb5f1 Merge pull request #160 from creative-commoners/pulls/2.0/friendly-direction-labels
FIX Add friendly labels for ASC and DESC in query builder. Remove extension point in addQueryFields.
2017-06-07 09:36:40 +12:00
Robbie Averill
f296c89dc0 FIX Add friendly labels for ASC and DESC in query builder. Remove extension point in addQueryFields.
Use updateCMSFields instead
2017-06-06 16:53:52 +12:00
sachajudd
84c7233b79 Merge pull request #159 from creative-commoners/pulls/2.0/fix-orderable-documents
FIX Ensure documents are drag-and-drop reorderable in document sets
2017-06-06 16:47:03 +12:00
Robbie Averill
58ac37a1e8 FIX Ensure documents are drag-and-drop reorderable in document sets 2017-06-06 16:14:14 +12:00
Robbie Averill
7fb2662958 FIX Remove "Page" literal field when editing a doc set in a page context. Simplify exception test. 2017-06-06 12:08:06 +12:00
Robbie Averill
d8f3685601 Merge pull request #145 from creative-commoners/pulls/2.0/add-set-button
FIX Add 'add document set' button and update label for Page
2017-06-06 11:05:08 +12:00
Sacha Judd
cbd3a65fa9 FIX Add 'add document set' button and update label for Page 2017-06-03 08:24:14 +12:00
Franco Springveldt
3d19b9fc75 FIX title validation on DMSDocumentSet 2017-06-02 16:05:10 +12:00
Sacha Judd
aedc970cf4 NEW Reorder summary fields and make getFieldsForFile extensible 2017-05-30 13:51:56 +12:00
sachajudd
11819a1e16 Merge pull request #140 from creative-commoners/pulls/2.0/rename-json-field
FIX Rename JsonField to DMSJsonField to add a pseudo-namespace
2017-05-24 15:38:34 +12:00
Robbie Averill
0ffd4d8584 FIX Rename JsonField to DMSJsonField to add a pseudo-namespace 2017-05-24 14:29:51 +12:00
Robbie Averill
80e36c3350 NEW Add friendly URL segments for DMS documents 2017-05-24 11:43:23 +12:00
Robbie Averill
9b42effeb5 FIX Refactor SCSS, convert to more BEM-like names, add admin icon
* Remove "small" class from inline edit form for documents
* Swap relationeditor GridFieldConfig for record editor to ensure that document sets can be deleted from a page context rather than unlinked (natively)
* Fix to ensure that related documents can be autocompleted via partial matching on filename
* Add 2 space indentation rule to editorconfig for .js and .scss files
2017-05-22 15:20:16 +12:00
Robbie Averill
489a62abb2 API Remove DMSGridFieldDeleteAction, add query builder filter for taxonomy terms 2017-05-18 17:30:25 +12:00
Robbie Averill
17d97d65ce API Remove DMSTag, replace with optional extension for taxonomy module 2017-05-18 17:30:24 +12:00
sachajudd
e4ab2b0861 Merge pull request #127 from robbieaverill/feature/change-storage-path
API Make storage path configurable. Fix instance singleton and remove static methods.
2017-05-18 17:20:59 +12:00
sachajudd
6afab52a09 Merge pull request #131 from robbieaverill/pulls/2.0/add-belongstoset-column
NEW Add column to document set GridField to show whether added manually or not
2017-05-18 15:42:10 +12:00
Robbie Averill
283f9fff7a API Make storage path configurable. Fix instance singleton and remove static methods 2017-05-18 15:14:09 +12:00
Robbie Averill
84e1d3ff80 NEW Add column to document set GridField to show whether added manually or not 2017-05-18 15:07:12 +12:00
Robbie Averill
a6743b03f5 NEW Allow shortcode handler key to be configurable 2017-05-17 17:24:50 +12:00
Franco Springveldt
6b25237ec6 NEW Query Builder functionality added
This enhancement adds the ability to add documents to a document set based on a list of filters added from DMSDocument. Fixes #96
2017-05-16 13:26:01 +12:00
sachajudd
6b80f32832 Merge pull request #117 from robbieaverill/feature/webpack-scss
NEW Replace Compass with Webpack, update docs, remove unused @includes
2017-05-10 10:27:11 +12:00
Robbie Averill
a376b3480a FIX Move permissions for documents into the "actions panel" 2017-05-09 16:47:05 +12:00
Robbie Averill
513c29aa99 NEW Replace Compass with Webpack, update docs, remove unused @includes 2017-05-09 16:06:57 +12:00
Robbie Averill
1c1b1d2aeb FIX Don't show GridField until set has been saved. Add more tests, fix typos in docs. 2017-05-09 13:06:37 +12:00
Robbie Averill
e4bc553521 API Add document sets, remove *Page methods from DMSDocument
* Add 2.0.0 changelog
* Update DMSInterface and DMSDocumentInterface removing *page and adding getDocumentSetsByPage to DMSInterface
* Update use documentation and update unit tests

This commit changes the relationship from Pages has_many Documents to Pages has_many DocumentSets which are many_many to Documents. The upload field has been upated to attach documents to a set instead of a page, the tests updated and the DMSInterface and DMSDocumentInterface updated to be less relevant to pages and more relevant to document sets.
2017-05-09 13:04:29 +12:00
Robbie Averill
2329ba4f40 FIX Do not allow documents to be related to themselves 2017-05-09 10:59:33 +12:00
Franco Springveldt
8682c7fca9 Added ability to secure DMS assets by user groups. 2017-05-08 16:12:46 +12:00
Sacha Judd
d29a115f7b NEW add DMSDocumentAdmin and new "add document" GridField component
The add new button wasn't modular so have added a GridField component which can be reused
2017-05-04 10:10:20 +12:00
Robbie Averill
9c0ec616d1 NEW Relate documents to other documents
* Modularise templates, add missing localisations, add related documents to template
* Add getRelatedDocuments as an extensible getter in DMSDocument
2017-05-02 12:38:55 +12:00
Robbie Averill
39ce206b55 FIX Updates for coding standards, move second classes in files to their own files, fix comments 2017-05-01 15:56:27 +12:00
Daniel Hensby
97ec75df59
Added test 2016-12-20 15:15:37 +00:00
Daniel Hensby
41533deb41
Reverting file permission changes 2016-12-20 15:15:33 +00:00
James Barnsley
98b79adca7
Optional field that allows users to force PDF downloads, otherwise allow browsers to open in new tab 2016-12-20 15:15:32 +00:00
Florian Thoma
e508d05382 fix js and styles for SS 3.2+ 2016-07-15 17:15:03 +10:00
Daniel Hensby
cbd48d46a1 Merge branch '1.0' 2016-03-18 12:01:09 +00:00
Jeff Whitfield
961de53364 Fixed issue with folder path not being stored with document. Value must be set as a string before being saved to the database. 2016-01-21 18:39:50 -06:00