Strapi Collections

This page details each collection type in detail and the fields that are available to them. If you are looking for an explanation of components available to Page and Home entries, please consult Component reference.

To learn how to create, publish and unpublish a collection entry (such as a Page), please refer to Content Manager.

Page

A Page entry represents a page on the City Nature Challenge site (such as citynaturechallenge.org/about).

Content Manager

The following fields are available for a Page entry:

  1. Title: The header 1 of a Page (the main title).
  2. Slug: The unique string that forms the path of the page's URL.
  3. Searchable: Determines if page is indexed by site search. Set it to False if you would like the page to not show up (useful for Past Results or Contact page).
  4. Body: Where components can be added to the Page.

Results

A Results entry is for the collective results a CNC year. The components added to a Results entry can be used elsewhere in the site, but are mainly used on the Home page and the Past Results page.

Content Manager

  1. Year: The year that the results are from (i.e. 2022).
  2. Body: Where components can be added to the Results entry.

Event Dates

Event Dates entries list the important dates for a City Nature Challenge year. These are primarily used for the Live Banner and Countdown components. Content Manager

The following fields are available for an Event entry:

  1. Year: Year of the City Nature Challenge dates.

  2. Collection Start: Date/time when collection starts.

  3. Collection End: Date/time when collection ends.

  4. Identification Start: Date/time when identification starts.

  5. Identification End: Date/time when identification ends.

  6. Results: Date/time that results will be announced.

Configuration

A collection of configuration settings for the site. Currently, the only configuration section is for the global Live Banner component. Future sections could include Contact email settings, a global countdown widget or API endpoints for the live results page.

Live Banner

The live banner will only display on the site if Display banner is set to TRUE and the current datetime is during the collection period of the selected Event Dates.

Settings for the sitewide Live Banner component. Below is a list of fields for the Live banner:

  1. Display banner: Determines if the live banner should be displayed.
  2. Pages: The pages that should display the live banner.
  3. Event Dates: The Event Dates entry that should be used to determine if the live banner is to be displayed.

Footer

The CNC Footer is split up into two columns (see below), each of which can contain links to internal pages or to external links. Footer columns Footer fields On the Footer single type page, you can add External Links or Internal Links to either column:

  1. Column 1: Corresponds to the list of links in Column 1 of the footer (see first image).
  2. Add a component to Column 1: Button to add more links to Column 1.
  3. Add a component to Column 2: Button to add more links to Column 2.

Home

Single type for the Home page (i.e. citynaturechallenge.org). Below is a list of fields available and what they correspond to on the site.

Home fields

  1. Title: The title text of the home page
  2. Hero image: Image that will be behind the title text/description on desktop and above the title/description on mobile. An image for mobile and desktop must be provided. The browser width where the images switch from mobile to desktop is 768px.
  3. Description: Paragraph text below title text.
  4. Body: Where components can be added to the Page.

Navbar

Where you can add new pages to the navigation bar for the site.

Navbar elements

  1. Logo: The logo used in the leftmost side of the navigation bar.

  2. Navbar items: A collection of entries from Page.

If multiple pages are added to the same Navbar Item it will create a dropdown on desktop (see below).

Results dropdown