Breadcrumb

File Categorization Collections

What Is It?

This module allows you to organize your files into Collection Groups and sort them by different categories. A dedicated view page is automatically created when you create a Collection Group. This module is not enabled by default on all sites. A request will need to be made to Campus Web Solutions.  

The module adds Collection Groups to the Structure options. Once a collection group is added, it automatically creates a corresponding Taxonomy where you can then set the terms. These taxonomy terms will be used as the sorting mechanisms for the files. The files will be displayed by category with the date of upload and can optionally be linked to an additional external source. Finally, there is a status feature, another set of taxonomy terms, to display statuses of your choosing. 

Hypothetical Example of Usage

The Human Resources department has various pdfs covering policies and procedures. Each are labeled under a specific category such as "Compensation", "Employee Development", and "Campus Polices". While these can simply be uploaded to Drupal and then linked on a page with headers or under separate accordions, this Collection Group will display these documents on one page with a search feature by keyword or by category. For the status taxonomy terms, these policies can be set up as "UC Wide" or "UCR". 

How to set it up

Scenario for the below "how to" guide: You’re a music albums collector organizing the albums you’ve already acquired and those that are still in your wishlist by genre. The Collection Group will be called "Music Collection", the Taxonomy terms for "Categories - Music Collection" will be the genres. The Taxonomy terms for "Status - Music Collection" will be either 'acquired' or 'wishlist'. 

Create a Collection Group 

  1. Login to your site and if the UCR Collections module has been enabled, you should be able to see Collection Groups under Structure 

    Screenshot of structure - collection groups
  2. Once on the page, click on “+Add Collection Group” 

    screenshot of add collection group
  3. Give your collection group a label and a collection path and hit save. The collection path is where you’ll be able to see your collections. 

    screenshot of collection path

Create Categories for your collection

It is important you create your Collection Group first because new menu items for taxonomy will be created automatically: 

  1. Go to Structure > Taxonomy > Categories - [Collection Group] 

    screenshot of taxonomy categories for collection
  2. Click on “+ Add term” 

    screenshot of sample collection add term
  3. Create the appropriate categories for your collection group. You can have as many as you want. I’ve created Rock, Jazz, Indie, and Lofi hiphop categories. 

    screenshot of collection categories adding term

Create Status for your categories

  1. Go to Structure > Taxonomy > Status - [Collection Group] 
    screenshot of Taxonomy status for collection group
  2. Click on ”+ Add Term” 
    screenshot of taxonomy status adding term
  3. Give your status a name and click save. For a music collection, I want to know what albums I’ve already acquired and what’s on my wishlist 
    screenshot of adding term to collection taxonomy for status

Add Items to your collection Group 

  1. Go to Content > Click on Collection Items 

    screenshot of content collection items
  2. Click on “+Add Collection Item”

    screenshot to add items to collection group
  3. Give your collection item a Name. Required. 
    General. This is optional, but if you wanted to say something about the item you are adding, you can put it here. 
    Effective Status. Will be a drop down of the statuses you created in step 3. 
    Item Categories. Will be where you decide what category or categories this collection item falls under. 

    screenshot of adding a collection item
  4.  Importantly, in the media tab, this is where you can choose an already existing file or upload a new one. Click on ” Add media” 

    screen shot of media tab for collection item


    Here you can upload a file or select an existing one. Click “Insert selected “ when you’ve made your choice. 

    screenshot of selecting media to collection item
  5. Optionally, you can also add URLs that can provide more details about this collection item. Click on the URL’s tab   

    screenshot of option URL for collection item
  6. Once everything looks good, select ”Published” from the workflow dropdown and hit save. 

    screenshot of saving as published

View your collections page 

On your browser’s address bar, add the collection path you defined in step 1 (in the example, you would add /music-collection to your site's root) 
You will be redirected to the dedicated view page of your Collection Group.
You can sort by the categories you created or search for specific keywords.

screenshot of collection view