\DMSDocumentAddController
Synopsis
class DMSDocumentAddController
extends LeftAndMain
{
- // members
- private static string $url_segment = 'pages/adddocument';
- private static integer $url_priority = 60;
- private static string $required_permission_codes = 'CMS_ACCESS_AssetAdmin';
- private static string $menu_title = 'Edit Page';
- private static string $tree_class = 'SiteTree';
- private static string $session_namespace = 'CMSMain';
- private static array $allowed_extensions = ;
- private static array $allowed_actions = ;
- // methods
- public SiteTree currentPage()
- public int currentPageID()
- public DMSDocumentSet getCurrentDocumentSet()
- public Form getEditForm()
- public ArrayList Breadcrumbs()
- public string Backlink()
- protected string getPageEditLink()
- public void documentautocomplete()
- public string linkdocument()
- public string documentlist()
- public array getAllowedExtensions()
- public bool canView()
Hierarchy
Extends
- LeftAndMain
Tasks
Line | Task |
---|---|
72+ | what template is used here? AssetAdmin_UploadContent.ss doesn't seem to be used anymore |
Members
private
- $allowed_actions
- $allowed_extensions
—
array
Allowed file upload extensions, will be merged with `$allowed_extensions` from {@link File} - $required_permission_codes
- $session_namespace
- $tree_class
- $url_priority
- $url_segment
Methods
protected
- getPageEditLink() — Return a link to edit a page, deep linking into the document set given
public
- Backlink() — Returns the link to be used to return the user after uploading a document. Scenarios:
- Breadcrumbs()
- canView() — Overrides the parent method to allow users with access to DMS admin to access this controller
- currentPage() — Custom currentPage() method to handle opening the 'root' folder
- currentPageID() — Return fake-ID "root" if no ID is found (needed to upload files into the root-folder). Otherwise the page ID is passed in from the {@link DMSGridFieldAddNewButton}.
- documentautocomplete()
- documentlist() — Returns HTML representing a list of documents that are associated with the given page ID, across all document sets.
- getAllowedExtensions() — Get an array of allowed file upload extensions, merged with {@link File} and extra configuration from this class
- getCurrentDocumentSet() — Get the current document set, if a document set ID was provided
- getEditForm()
- linkdocument() — Link an existing document to the given document set ID