Documentation Index

Fetch the complete documentation index at: https://www.civicplus.help/llms.txt

Use this file to discover all available pages before exploring further.

Add & Manage Content Types

Prev Next

This article will show you how to add a Content Type to your HCMS. You can create up to 100 Content Types on your site.

Create a Content Type

Who can use this feature?

Owner | Developer | Publisher | Author (submit for approval)  

  1. Sign in to your HCMS site

  2. Click to access Content Types in the column on the left-hand sideContent Types in the navigation menu.

  3. Click the green + (plus sign) buttonThe plus sign icon to add a new content type.

  4. Create a new NameCreate a content type screen with the Name field highlighted.

    Note:

    The Content Type name becomes part of the API URL (Example: https://hcms.civicplus.com/api/content/app/my-content-type/). The name cannot be changed later.

    • Requirements:

      • Lowercase letters (a to z)

      • Numbers and dashes only

      • Cannot be longer than 40 characters

    • Import Content Type: Add valid JSON scriptingCreate a new content type named 'news' with specific character restrictions.

  5. Click the Create buttonThe Create button on the new content type screen.

  6. Add Fields to your Content Type

  7. Toggle to Published when you want the Content Type to be publicly viewable/accessible: The Published and Unpublished buttons on the Content Type.

    Note:

    To view a preview of the JSON data, click the Json tab.Interface showing JSON data structure with highlighted 'Json' tab and unpublished status.


Edit a Content Type

Who can use this feature?

Owner | Developer | Publisher | Author (submit for approval)  

  1. Sign in to the HCMS

  2. Select Content Types on the left-hand side and select your desired Content TypeContent Types section showing various types including a highlighted Department entry.

  3. Navigate to the UI tab at the top and modify the order of List Fields and Reference Fields, if desiredThe UI tab fields on a content type.

  4. Navigate to the Scripts tab and add any desired scriptsThe 'Scripts' tab on a content type.

  5. Click the Json tab and make any edits to the scriptInterface showing JSON data structure with highlighted 'Json' tab and unpublished status.

  6. Navigate to the More tab and make desired editsThe 'More' tab for additional options and settings.

    • Preview URLs: Add or edit preview URLs

    • Name: Cannot be modified

    • Label: Change the Content Type label; will override an existing Name as the display

      Note:

      The Name is what is used in the API meaning there are more limitations on how to create the name (such as no spaces). The Label is more flexible. If no label is provided the Name will be used as the label.

    • Hints: Add hints/tooltips of what the label should be

    • Tags: Enter tags to annotate your content type for automation processes

  7. Click the Save buttonThe Save button on the edit content type screen.


Delete a Content Type

Important Note

You cannot delete a Content Type that contains published items.

Who can use this feature?

Owner | Developer | Publisher

  1. Sign in to the HCMS

  2. Navigate to Content Types on the left-hand side and select the Content Type you want to deleteContent Types section showing various types including a highlighted Department entry.

  3. Click the Actions menu in the top-right of the page and select the Delete optionThe Delete option in the actions menu next to a content type.

  4. Reply Yes to the pop-up that asks Do you really want to delete the Content Type?Confirmation dialog asking to delete content type with options to confirm or cancel.