HTBDL — 3: Cleaning up the content type
Previously on How to Build a Digital Library: I made a new content type. Time to clean it up a bit. I’ll go over the structure with a little more detail later, but right now, I’m more concerned about a little initial organization. Right now, the Photo Upload content type consists of a list of marginally related fields, but with the help of yet another module, I’m able to group the related fields together in a way that feels natural.
Fieldgroup
I love how straightforward module names are. You know what you’re going to get before you even install them. Fieldgroup, unsurprisingly, lets you group fields! Imagine that. In Fieldgroup, groups are added to the content type the same way you add fields, then you can click-and-drag fields into the appropriate groups.
For this project, I created 3 groups: Tags, Date, and General Information. I omitted the first two fields, Title and Image Upload, from the groups, since they stand alone as the required fields for submitting content. Otherwise, I grouped my fields like so (pics will come soon, I promise):
- Tags
- People in this image
- Places in this image
- Date
- Date (exact year known)
- Date (estimated)
- General Information
- Name
- Location
I am, however, toying with the idea of combining the General Information fields (Name, which identifies the uploader [a sort of provenance for the digital file], and Location, from the Location module that is linked via API to Google Maps) with the two required fields mentioned above, so that the title and upload are encompassed within what is essentially general information about the file. I’m going to mull that one over for awhile.
Fieldgroup allows you to present groups in a few different ways. Right now I’m trying out vertical tabs, but this might change. Again, pics soon. Promise.
Also updated:
Initially, I had the idea that when tagging the location (through the Places in this location field), the city and state should be kept together as a single term by using a dash in place of the traditional comma, since commas typically denote the separation between intended terms when entering tabs. I’ve since decided that this is a terrible idea, and that the city name and state (or country) should definitely be separate terms. I changed the descriptive text in this field to something more appropriate.
