Configuring post types
To modify an existing post type click Posts on the Modules area of the Configure tab. The post type table now displays showing all your existing post types. Post types are used to define both posts and forums.
Select the desired post type and click the Edit action. This opens a new pop-up screen in which you can modify the details of your post type. The fields are described below:
- Name (Singular) - this is the title of your post type for example 'location'.
- Name (Plural) - this is the plural of the post type which is used in output if there are multiple instances of posts for example 'locations'. It's also used as the label in the editor tab.
- Post Kind - this provides an option to decide between the type of data you are expecting to create posts about. The options are:
- time based for use in calendars and events listings.
- list based for example posts that are more related to objects, people and places, like directory systems.
- news based - similar to time based but displays dates in the past.
- forums - a special type of post type used for discussion. Post types configured as forum will subsequently disappear from the post type list and instead be listed under the forums option and are managed differently.
The rest of the fields for the post type are fully configurable, you can add as many as you want and of any type. You can even have another post type as one of your new fields. The following section describes how to add a new field type.
Click on the add another field button at the bottom of the pop-up, then fill in the following fields:
- Field Name - this is the name for the field displayed to site administrators.
- Label / Description - this is the label for the field displayed to site users.
- Field Type - this is the types of fields you can have, there are multiple types:
- Text - will accept letters and numbers.
- Number - will accept numbers.
- Image - (11.2) insert images using the same image picker editorial pages use.
- Lat/long - Introduced in 10.1 This is a location field and produces a geolocation picker when a post of this type is created/edited.
- Date field - Introduced in 10.2 this is a date field and produces a date picker when a post of this type is created/edited.
- Divider - Introduced in 11.2 this field only displays in the CMS admin, allowing fields to be grouped.
- Checkbox field - Introduced in 10.2 for boolean yes/no data collection or display.
- Richtext field - Introduced in 10.2 to allow a further field of rich text to be added to a post.
- User group - will accept a pre-created user group. You can use this to associate a particular user group or groups with your post. This then means that output posts and lists can be filtered by their associated groups to provide personalised content.
- User - 10.1 as above but provides a drop down list of available users to associate with your post. The list is drawn from the sites 'members'.
- Tag - 10.4 a field that can be used to add a comma-separated list of tags/keywords/categories. In admin, this then provides an auto-suggest dropdown for previously existing tags on that posttype.
- Member Of - 10.1 There is a custom field type for each user group on the site, prefixed by 'Member of'. This produces a dropdown list to choose Sitekit users/members who belong to that group.
- Existing post type - this is where the power of posts comes in. You can select any previously configured post type as a field type for your new post type. This allows you to relate your posts together and make cross references.
- email from - The text that indicates who the email was sent from. Set using specific magic words such as
- email subject - The subject of the email sent to other contributors when someone posts on the forum eg
- email body - The email body normally sends the discussion title and comment body to give the context eg
:::comment.owner.fullname:::added the following comment to