Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
JoryHogeveen opened this issue Sep 17, 2019 · 1 comment · May be fixed by #5471
Closed

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

JoryHogeveen opened this issue Sep 17, 2019 · 1 comment · May be fixed by #5471
Assignees
Labels
Type: Enhancement Enhancements to features that already exist, but are not major additions

Comments

@JoryHogeveen
Copy link
Member

JoryHogeveen commented Sep 17, 2019

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.

@JoryHogeveen JoryHogeveen added the Type: Enhancement Enhancements to features that already exist, but are not major additions label Sep 17, 2019
@JoryHogeveen JoryHogeveen added this to the Pods 2.7.16 milestone Sep 17, 2019
@JoryHogeveen JoryHogeveen self-assigned this Sep 17, 2019
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label Type: Enhancement to this issue, with a confidence of 0.96. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@JoryHogeveen JoryHogeveen added the Status: In Progress Issue or PR is currently in progress but not yet done label Oct 24, 2019
@sc0ttkclark sc0ttkclark modified the milestones: Pods 2.7.16, Pods 2.7.17 Nov 12, 2019
@JoryHogeveen JoryHogeveen modified the milestones: Pods 2.7.17, 2.718 Mar 25, 2020
@JoryHogeveen JoryHogeveen changed the title Allow recursive [if] statements Allow recursive [if] and [else] statements Mar 25, 2020
@JoryHogeveen JoryHogeveen modified the milestones: Pods 2.7.18, Pods 2.7.19 Apr 4, 2020
@JoryHogeveen JoryHogeveen modified the milestones: Pods 2.7.21, Pods 2.7.22 Jun 25, 2020
@JoryHogeveen JoryHogeveen modified the milestones: Pods 2.7.22, Pods 2.7.23 Aug 17, 2020
@JoryHogeveen JoryHogeveen modified the milestones: Pods 2.7.23, Pods 2.7.24 Oct 26, 2020
@JoryHogeveen JoryHogeveen modified the milestones: Pods 2.7.24, Pods 2.7.25 Nov 5, 2020
@JoryHogeveen JoryHogeveen modified the milestones: Pods 2.7.25, Pods 2.7.26 Dec 21, 2020
@sc0ttkclark sc0ttkclark modified the milestones: Pods 2.7.26, Pods 2.7.27 Jan 8, 2021
@JoryHogeveen JoryHogeveen removed the Status: In Progress Issue or PR is currently in progress but not yet done label Apr 19, 2021
@sc0ttkclark sc0ttkclark modified the milestones: Pods 2.7.27, Pods 2.7.28 Apr 19, 2021
@sc0ttkclark sc0ttkclark modified the milestones: Pods 2.7.28, Pods 2.7.29 May 19, 2021
@sc0ttkclark sc0ttkclark modified the milestones: Pods 2.7.29, Pods 2.7.30 Aug 4, 2021
@sc0ttkclark sc0ttkclark modified the milestones: Pods 2.7.30, Pods 2.7.31 Aug 12, 2021
@pods-framework pods-framework locked and limited conversation to collaborators Aug 11, 2022
@sc0ttkclark sc0ttkclark converted this issue into discussion #6788 Aug 11, 2022
@sc0ttkclark sc0ttkclark modified the milestones: Backlog, Backlog Archive Sep 11, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Type: Enhancement Enhancements to features that already exist, but are not major additions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants