`civictheme_get_field_value` helper function does not process some common core field types

Created on 30 April 2024, about 2 months ago
Updated 21 June 2024, 7 days ago

Problem/Motivation

`civictheme_get_field_value` provides an API to return value from fields with a value that CivicTheme expects for a given field type.

There are some core fields that are not supported but should be:

  • text_with_summary - this is used as the field type for the default `body` field
  • `text` - Text (formatted)

Both of these provide formatted HTML

Steps to reproduce

1. Create a content type with default body field, attempt to pass body field to `civictheme_get_field_value` to get formatted field for component - get NULL as a return value,

Proposed resolution

1. Add support for above mentioned fields
2. Review other core fields to see if any others should be supported.

πŸ› Bug report
Status

Fixed

Version

1.7

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia RichardGaunt Melbourne

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024