Skip to content

Allow recursive [if] and [else] statements #5470

Closed
@JoryHogeveen

Description

@JoryHogeveen

As the title says. Currently Pods only supports if shortcodes for a direct field of a pod like so:

[if field]content[/if]

Our support gets a lot of people using the if shortcode the same as magic tags, which support recursive relationship fields like so:

{@rel_field.field_name}

If would be nice if Pods templates support this for if shortcodes as well like so:

[if rel_field.field_name]content[/if]

EDIT:

In order not to confuse our users [each] statements should also feature this enhancement.

Metadata

Metadata

Assignees

Labels

Type: EnhancementEnhancements to features that already exist, but are not major additions

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions