Commit Graph

27 Commits

Author SHA1 Message Date
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
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
283f9fff7a API Make storage path configurable. Fix instance singleton and remove static methods 2017-05-18 15:14:09 +12:00
Sacha Judd
e1e5194c1c NEW Add cover image to a document 2017-05-15 17:17:10 +12:00
Robbie Averill
a376b3480a FIX Move permissions for documents into the "actions panel" 2017-05-09 16:47:05 +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
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
helpfulrobot
bd707c4ffc Converted to PSR-2 2015-12-18 07:48:37 +13:00
Ingo Schommer
f7e4e279ee More DB quoting 2013-03-11 15:32:51 +01:00
Ingo Schommer
d207e8af34 MINOR Manually marking test run in DMSDocumentTest to avoid triggering solr reindex
Should really be handled by SapphireTest, tearDownOnce()
is technically still part of the test run, but this
is a quick enough fix
2012-11-01 12:42:21 +01:00
Ingo Schommer
f2d81e26df BUG Don't delete docs if respective other stage of SiteTree still exists 2012-10-15 01:01:58 +02:00
Ingo Schommer
75d9e06d7f BUG ID comparisons in test assertions
More solid than object comparisons, which was broken
by introduction of the "DocumentSort" flag,
which doesn't seem to be consistently added to the
object value map.
2012-08-27 13:29:30 +02:00
Julian Seidenberg
9e9cc995b3 ENHANCEMENT: warning when deleting a page with documents that exist only on this page. Also, when actually deleting the page, delete the associated documents that only exist on that page 2012-08-07 14:39:07 +12:00
Julian Seidenberg
0f6e7be3b9 API-CHANGE: enabling replace document 2012-07-27 14:21:24 +12:00
Julian Seidenberg
6a40448609 API-CHANGE: refactoring to support replace document functionality 2012-07-27 14:02:46 +12:00
Julian Seidenberg
cb2f61c260 BUGFIX: fixing DMS unit tests 2012-07-27 13:11:28 +12:00
Julian Seidenberg
5c6f57a6c1 MINOR: removing comment 2012-07-25 18:11:05 +12:00
Julian Seidenberg
ac826784f1 BUGFIX: fixing DMS Document unit test 2012-07-25 18:08:15 +12:00
Andrew O'Neil
5681f028ea MINOR: Mark tests incomplete 2012-07-23 13:50:10 +12:00
Julian Seidenberg
5e4c295853 API-CHANGE: additional DMS implementation code 2012-07-17 17:58:33 +12:00