Franco Springveldt
3d19b9fc75
FIX title validation on DMSDocumentSet
2017-06-02 16:05:10 +12:00
Franco Springveldt
886fd217f2
Merge pull request #141 from creative-commoners/pulls/2.0/doc-sets-modeladmin
...
NEW Add ModelAdmin interface for managing DMSDocumentSets
2017-05-31 10:34:32 +12:00
Sacha Judd
aedc970cf4
NEW Reorder summary fields and make getFieldsForFile extensible
2017-05-30 13:51:56 +12:00
Robbie Averill
cbc53fd7d2
NEW Add ModelAdmin interface for managing DMSDocumentSets
2017-05-29 10:15:21 +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
sachajudd
84abd5d837
Merge pull request #132 from robbieaverill/pulls/2.0/remove-autocompleter-for-document-sets
...
FIX Remove add existing autocompleter for document sets on a page
2017-05-18 15:36:14 +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
5cb92ecd7c
FIX Remove add existing autocompleter for document sets on a page
2017-05-18 15:11:55 +12:00
Franco Springveldt
03fe480ca5
Merge pull request #128 from robbieaverill/feature/configurable-shortcode-handler-key
...
NEW Allow shortcode handler key to be configurable
2017-05-18 15:11:54 +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
8d2f707f48
FIX Ensure after uploading document you are redirected back to the document set
2017-05-18 11:51:32 +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
sachajudd
a59349e37f
Merge pull request #113 from robbieaverill/feature/document-set-migration-guide
...
NEW Add migration task and documentation for 1.x to 2.x upgrade
2017-05-10 10:20:34 +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
aafcc35f6c
NEW Add migration task and documentation for 1.x to 2.x upgrade
2017-05-09 13:20:30 +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
66abd22ee5
FIX Allow linking existing documents to document sets via add existing upload field
2017-05-09 13:04:29 +12:00
Robbie Averill
b80aa645f8
MINOR Add more tests for classes in the "cms" code folder
2017-05-09 13:04:29 +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
fb08e472c6
fix edit after upload (from @benmanu), fixes #53
2016-08-30 12:04:08 +10:00
Daniel Hensby
f46089d158
Merge branch '1.1'
2016-07-15 16:28:22 +01:00
Florian Thoma
e508d05382
fix js and styles for SS 3.2+
2016-07-15 17:15:03 +10:00
Daniel Hensby
6e62d65ca3
FIX Backlink computed correctly
2016-05-05 16:18:02 +01: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
helpfulrobot
bd707c4ffc
Converted to PSR-2
2015-12-18 07:48:37 +13:00
Peter Thaleikis
08ea258e50
Update DMSDocumentAddExistingField.php
...
removing closing php tag as it isnt required and is excluded in the code style
2015-05-12 20:51:07 +12:00
Stephen Shkardoon
3453e51255
Sort documents on front-end - Fixes #44
2015-02-03 15:54:06 +13:00
Florian Thoma
ec0ecdda6d
fix front end sorting of documents
...
fixes #44 for 1.0 branch
2014-07-23 08:56:08 +10:00
Will Rossiter
425e68b22d
Add default searchable_fields
2014-02-03 11:54:34 +13:00
Will Rossiter
d73b13afd5
FIX: Resolve issues with find by page documentlist
2014-01-29 14:40:57 +13:00
Leapfrognz
be256430a8
Added the Header component back in
2014-01-17 16:20:32 +13:00
Will Rossiter
bd8e88e2ab
Sort assets by ID so matching '2' doesn't first match newer records
2014-01-15 17:36:59 +13:00
Will Rossiter
8e534e99f2
Make DMSDocument methods chainable. PHPDoc cleanup.
...
- Remove unimplemented getAllTags()
- Add .DS_Store as ignored file
- Add gridfieldextensions as a declared dependancy.
2014-01-10 15:21:50 +13:00
Will Rossiter
0fb0410718
FIX: Resolve issue of not being able to attach documents on draft pages
2014-01-10 15:21:50 +13:00
Will Rossiter
50aa550161
Implement getFilename and getName to stick comparely to File API.
2014-01-10 15:21:50 +13:00
James Ayers
ae9a12ed61
Now uses GridFieldExtensions for the sortable rows
2014-01-10 15:21:50 +13:00
James Ayers
ff04a9f493
fixed CMSfields js and css issues
2014-01-10 15:21:50 +13:00
Normann Lou
98d614f14a
BUG before use object's property check it to make sure it is not NULL.
2013-11-15 16:18:11 +13:00
Normann Lou
d64fe9ba13
NEW best way to keep extended 'can' functions effected with DataObject's own 'can' functions. MIN make possible to use DataExtension defined 'can' functions' signature without Strict level warning
2013-11-14 17:37:55 +13:00
Normann Lou
fd81f964e2
NEW make DMSDocument 'can' functions extensible
2013-11-14 15:00:16 +13:00
Andrew Short
00bffb2548
BUG: Fix access to documents on the staging site.
...
The DMS document controller had been changed to subclass ContentController
to correctly initialise the versioned stage. However, this had the side
effect of preventing access to documents when the "Stage" stage
was selected.
ContentController::init() calls the SiteTree::canViewStage() method, which
controls access when on the stage. However, since the data record was
non-existant, the method would always return false, preventing access to
documents.
This fix removes the subclassing of ContentController and just directly
initialises the versioned stage.
2013-10-11 21:58:13 +11:00
Andrew Short
76c4692d13
NEW: Add metadata to DMS links.
...
Shortlink links are now augmented with data attributes containing the
file extension and size.
2013-10-09 20:54:08 +11:00
Andrew Short
2c22ff476d
Move shortcode handling into a new class.
2013-10-09 20:23:50 +11:00
Andrew Short
893c10955a
BUG: Share session namespace with CMS main when adding documents.
...
The changes to the session management in 3.1 mean that editing when
uploading a document no longer worked as the page ID was not correctly
managed in the session. This addresses that issue by sharing a session
state with CMSMain.
2013-10-09 00:49:39 +11:00
Andrew Short
f718b90b69
BUG: Fix the action buttons not rendering on upload.
...
Due to escaping API changes, a HTMLText instance was being incorrectly
casted to JSON.
2013-10-08 19:20:18 +11:00
Stephen Shkardoon
0d9f011ea9
Merge pull request #33 from ajshort/pull-1
...
Extend content controller to make sure the correct stage is used.
2013-10-03 22:11:13 -07:00
Andrew Short
63e0417363
Extend content controller to make sure the correct stage is used.
...
The staging system is initialised inside ContentController::init(). As
the DMS serving bypassed this, the stage was not set correctly, meaning
permissions were not always correctly applied.
2013-10-03 23:54:40 +10:00
Stephen Shkardoon
075974edbb
Compatbility with master - allowed_actions private
2013-10-03 19:29:21 +13:00
richardmward
b74b4f2de1
FIX #29 - 'linkdocument' needed adding to allowed_actions
2013-09-21 11:42:21 +01:00
Stephen Shkardoon
0765b90da8
Merge pull request #28 from ss23/master
...
FIX #25 - documentautocomplete need allowed_action
2013-09-19 15:18:41 -07:00
Stephen Shkardoon
049a1c8d84
FIX #25 - documentautocomplete need allowed_action
2013-09-20 10:17:30 +12:00
Julian Seidenberg
c2639d86d1
Merge pull request #24 from ss23/master
...
FIX Don't show the upload field when inappropriate
2013-09-10 22:13:14 -07:00
Stephen Shkardoon
8d4b24b68d
FIX Don't show the upload field when inappropriate
...
This fix is quite ugly, but in theory, it's fine. By ugly,
I mean the interface is kind of weird without it.
Because 3.1 allows uploading when a DataObject doesn't exist,
we need to override the new defaults to not allow such if
the DO isn't saved yet.
2013-09-10 21:03:42 +12:00
Stephen Shkardoon
144043c437
3.1 compat -- Add action to allowed_actions
2013-09-10 20:59:59 +12:00
Stephen Shkardoon
45849c5833
Merge pull request #22 from ss23/allowed_actions-3.1
...
Add allowed_actions to make it work for 3.1
2013-08-28 19:55:16 -07:00
Stephen Shkardoon
cb96c474da
Add allowed_actions to make it work for 3.1
2013-08-29 14:50:43 +12:00
Stephen Shkardoon
5d3f232d58
Merge pull request #21 from ss23/fix-14
...
Fix #14 - Shortcode download link fixed
2013-08-28 18:07:58 -07:00
Stephen Shkardoon
6d0af08f1a
Fix #14 - Shortcode download link fixed
2013-08-29 13:05:51 +12:00
Ingo Schommer
75899876d2
3.1 compat (controller code)
2013-08-22 17:21:55 +02:00
Stephen Shkardoon
aa190ea7a5
Fix deprecation warnings for master
2013-08-22 23:50:14 +12:00
Normann Lou
ea7b2c0471
BUG add $allowed_actions for both DMSDocumentAddController and DMSUploadField
2013-06-26 04:57:36 +12:00
Julian Seidenberg
6ecfa61ca1
BUG removing content method again, since it doesn't work reliably
2013-05-01 17:48:53 +12:00
Julian Seidenberg
f02303793d
BUG moving new getContent method into DataObject, not Controller
2013-04-30 18:14:13 +12:00
Julian Seidenberg
687b4f5f97
NEW adding content method for compatibility with TextExtraction module
2013-04-30 18:07:57 +12:00
Cam Findlay
5bf804c1af
FIX the autocomplete for adding a document to a page that already exists in the DMS.
2013-04-18 13:38:29 +12:00
Cam Findlay
3276320234
Added CRUD settings to allow non-admin CMS users to use parts of the dmx module.
2013-04-18 13:02:32 +12:00
Cam Findlay
1b6c76b405
Further updates for 3.1 compatibility.
2013-04-15 14:03:58 +12:00
Ingo Schommer
ebcd6caa26
Fixed DB quoting (mainly for non-MySQL compat)
2013-03-11 15:20:55 +01:00
Ryan Wachtl
9802e05a13
BUG getList() now returns the filtered DataList
...
In SilverStripe 3.1.x getList() was returning the unfiltered DataList and as a result all pages in the SiteTree were showing as having a reference to the given document.
2013-03-08 21:27:18 -06:00
Ingo Schommer
5e6b77a0a9
BUGFIX Using toMap() in create_version() to avoid DataObject::__construct() failures
2013-01-08 13:22:25 +01:00
Ingo Schommer
6b7ee0623a
Only return DMSDocument->FullPath() when filename exists
...
Fixes a regression introduced with 18c2081b
when uploading new files
2013-01-07 17:31:04 +01:00
Ingo Schommer
597e393630
BUG DMSUploadField JS template usage
...
Instead of relying on JavaScript requirements blocking,
configure a more specific template name to use
in certain situations. We can't control JS files
loaded by the browser already by previous requests,
so Requirements blocking does not override the
template in all cases, creating execution-path specific
edge cases (like showing "save to refresh" messages
in the background of a "add document" upload success)
2013-01-07 10:11:55 +13:00
Julian Seidenberg
8f5c65d539
API-CHANGE: adding a method to add to the list of extensions that are allowed as Documents.
2012-11-23 10:56:28 +13:00
Shea
1f89aad168
MINOR show ViewCount in document details view
2012-11-22 13:48:33 +11:00
Julian Seidenberg
a9f9e7111a
API-CHANGE: adding ability to show/hide the Document tab on specific pages
2012-11-22 14:37:40 +13:00
Julian Seidenberg
18c2081be7
ENHANCEMENT: deleting the old file when replacing, if document versioning is turned off
2012-11-22 13:47:59 +13:00
Julian Seidenberg
408fd88d9e
MINOR: adding spaces into labels
2012-11-22 13:42:03 +13:00
Julian Seidenberg
1bd5d929ef
API-CHANGE: adding document versioning
2012-11-21 18:24:46 +13:00
Julian Seidenberg
6ebb212af0
BUGFIX: fixing bug with the delete button in the grid field detail view
2012-11-21 17:15:23 +13:00
Julian Seidenberg
c72bbefabc
ENHANCEMENT: using a defined directory for the dms so you can change the directory, if you want
2012-11-21 10:22:40 +13:00
Julian Seidenberg
57063c1c48
MINOR: updating method name to match deployment
2012-11-13 10:51:42 +13:00