Skip to content

Instantly share code, notes, and snippets.

@karlkaebnick
Last active February 12, 2018 17:50
Show Gist options
  • Save karlkaebnick/304d174092c6b15c2981bbce43a2af86 to your computer and use it in GitHub Desktop.
Save karlkaebnick/304d174092c6b15c2981bbce43a2af86 to your computer and use it in GitHub Desktop.
How to add content to the drupal city of Detroit website
  1. Login to the site as an editor: http://detroitmi.theneighborhoods.org/user/login

  2. Navigate to the taxonomy you are going to add content to:

  • Click on Structure -> Taxonomy -> Departments (or "Government" or "Initiatives")
  • Check if the term already exists (If the terms are out of order you can click "Reset to alphabetical" at the bottom of the page to sort them alphabetically). If so, click on the term, and choose "edit". Otherwise, choose "Add Term".
  1. Add the following values:
  • Title
  • Abbreviation (if there is an abbreviation for the department that is typically used)
  • Description
    • in drupal, rich text editors (like the one we use for the description field) you can copy / paste content from other websites (e.g., from the DNN version of detroitmi.gov) or from documents like word, pdf, etc., which actually works pretty well
  • Summary
  • Anchor Link
  • Url Alias
    • if there is a specific url that you want to use for this page - you will need to un-check "Generate automatic URL alias" if you want to add your own
  • Use the "Relations" multi-select to set the correct "parent" of this term (if it is a sub-department / sub-page / part of another government body). Note: most select boxes like this have auto-complete in Drupal, so you can just type the first few letters of one of the words in the sub-department / sub-page / part of another government body that you are trying to find.
  1. Once you are done with your changes, click "save". If this term was a new term, you may want to resort the taxonomy it belongs to:
  • Click on Structure -> Taxonomy -> Departments (or "Government" or "Initiatives") and choose "List terms"
  • Assuming this taxonomy is alphabetically-sorted (right now they are all are, but that may change), click on "reset to alphabetical order" at the bottom of the page and click save.
  1. You are now ready to add information associated with that term:
  • Contact Info
    • This can be an actual person (e.g., the head of the department you just added) or contact info (e.g., customer service or general contact info for the department)
    • Click on Content -> Add Content -> Contact Info
    • Add the following:
      • Name
      • Position (if this is a person)
      • Email Address (if any)
      • Phone (if any)
      • Choose the department / initiative / government term that this contact info is associated with. Note: generally choose the "lowest" level department that the contact info can be associated with - for instance, if someone is the director of the CERT program within the Detroit Office of Homeland Security and Emergency Management (DHSEM), you would associate them with the CERT program, not with the entire DHSEM parent department.
    • Set the relational tag to "Main" if this contact info should show up on the right side of the page. Otherwise choose "Extra".
  • Location
    • This is typically the location of the department / initiative / government body
  • Event
    • These are upcoming events
  • FAQ
  • News
  • Social Media
    • e.g., the facebook or twitter account for the department / initiative / government body
  • Fee
    • Fee content is to used represent fees - e.g., a fee that someone would need to pay to get licensed as an electrician.
  • Document
    • This is simply a file associated with the department / initiative / government body (e.g., a pdf) Click on Content -> Add new media and choose "Document".
    • Enter the following:
      • Media name
      • Description
      • Document file (note that you can simply drag and drop the file onto the "choose file" button to add it)
      • Department (this can also be an Initiative or a Government body)
      • Interaction
      • URL Alias (if you want a specific url to point to this document)
      • Link - this is if you want to use a url instead of a file for this document. Examples of where this would be necessary are when the document is hosted on another site (e.g., a pdf on michigan.gov) or when the "document" is actually a dataset within data.detroitmi.gov
  • Form
    • This is a document which is either editable (e.g., pdfs that contain editable forms) or can be printed out and filled out by the end user.
    • Click on Content -> Add new media and click on "forms"
  • Image
    • Click on Content -> Add new media and click on "Image"
  • Video
    • Click on Content -> Add new media and click on "Video"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment