Conditional value in content

Created on 19 November 2020, about 4 years ago
Updated 15 December 2024, 3 days ago

Hi,

How can I create a conditional value in Drupal 8?

Like for example, if [node.summary] is empty then use [node.body]. Plus [node.body] should be trim to 160 characters only.

This seems to be easy in Drupal 7 because we can use PHP Code as Text format. But how about in Drupal 8?

Thanks in advance.

💬 Support request
Status

Closed: outdated

Component

Code

Created by

🇵🇭Philippines jaypabs

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024