Drag and Drop Overview
OU Campus includes the ability to drag and drop content including pages, files, binaries, and directories. Like with other user interfaces, dragging and dropping objects is accomplished by pointing to the content object with a mouse (or other device), pressing the mouse button and while holding it down, dragging it from the local computer to the OU Campus interface or from the OU Campus interface to another location within the interface, and releasing the mouse button.
This is especially useful for quickly uploading files from a local computer to a server or moving content within OU Campus. Drag and drop functionality is built into the interface for both the staging and production servers. Users can utilize the drag and drop functionality of the interface to move, upload, and insert content using what are referred to as "drop zones."
In addition to image file types, files with extensions of .html, .js, .txt, .xsl, .php, and .pcf may also be dragged to the Pages list view.
The Drop Zone
The drop zone refers to the area within OU Campus where a file or directory can be dropped when dragging to the interface.
When dragging files to or within OU Campus, a green line encapsulating a content area or green highlighting of a content row provides a visual indication of the allowed drop zone. When dragging to upload to OU Campus, a green line encapsulating a content area provides a visual indication of the allowed drop zone. The blue notification provides an additional indicator of the validity of the drag action.
Dragging content in to a page being edited with the Source Editor results in gray or purple highlighting of the dropped content.
Moving Content with Drag and Drop
Drag and drop functionality can be used to move files from one location to another within an OU Campus site. When content moved on staging, including directories, that content is silently republished to the production target and linking is updated automatically; unless, the content is locked with an action that would otherwise prevent auto-publishing such as a scheduled expire. Content moves on production, including directories, are not reflected on staging. Content can be moved using the drag and drop functionality of the interface from the following locations:
- Content can be moved within the Pages list view
- Content can be moved within the File Navigation sidebar
- Content can be moved from the Pages list view to the File Navigation sidebar
- Content can be moved from the File Navigation sidebar to the Pages list view
- Content can be moved from the Gadgets sidebar in to a directory in the Pages list
When moving files within OU Campus, a file with the same name is not allowed to be overwritten; for example, moving an index.pcf from one directory to another with an index file would result in an error notification. Users can move files either individually or in bulk using drag and drop. To move files using drag and drop:
- Navigate to the Pages list view by selecting Content > Pages from the global navigation bar. Alternatively, expand the File Navigation sidebar and navigate to the file using that method.
- Once the file has been selected, drag the content to its new destination.
- To move multiple files, select the checkbox next to each target item and then drag
the content to the new destination folder. The icon displays a number, indicating
the number of files being moved.
Uploading Content with Drag and Drop
Drag and drop functionality can also be used to upload content to a site in OU Campus. Binary files can be uploaded directly to staging.
Content uploaded to staging must be published or copied to production to be available on the web server. When dragging content that will takes a lengthy amount of time to complete, a notification is shown upon the completion of the action even if the user has navigated to another area of the CMS. For more information on uploading content:
Inserting Content with Drag and Drop
When a user is in the WYSIWYG Editor or the Source Editor, they are able to utilize drag and drop functionality to insert content directly onto the page. Content can be inserted in the WYSIWYG Editor using the Images gadget, and all file types can be inserted using the Insert File Path option. To insert images with the Images gadget:
- Ensure that the Images gadget is enabled by expanding the Gadgets sidebar and clicking Choose Gadgets. Select Images from the dialog and click Close.
- Navigate to the page to be edited and open an editable region to display the WYSIWYG Editor.
- Expand the Images gadget in the Gadgets sidebar to display the available images.
- Drag and drop the image into the WYSIWYG Editor.