-
-
Notifications
You must be signed in to change notification settings - Fork 265
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
Support [if] shortcode fields recursively (magic-tags) #5471
Draft
JoryHogeveen
wants to merge
22
commits into
main
Choose a base branch
from
feature/5470-recursive-if-shortcode
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 11 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
bfa83f2
Always make sure required keys exist
JoryHogeveen adcf3b6
Pass entityID instead of path ID for [if] shortcodes
JoryHogeveen 6b7559f
Iterate over recursive relationship fields
JoryHogeveen 9e7c05d
Multiple relationship fields (not sure why people would want that)
JoryHogeveen 6021a23
Merge branch '2.x' into feature/5470-recursive-if-shortcode
sc0ttkclark 562438b
Merge branch '2.x' into feature/5470-recursive-if-shortcode
JoryHogeveen 5a9c940
Merge branch '2.x' into feature/5470-recursive-if-shortcode
JoryHogeveen 57fb4eb
tr1b0t Codestyle
JoryHogeveen bc462d8
Merge branch '2.x' into feature/5470-recursive-if-shortcode
sc0ttkclark 699c3bd
Update components/Templates/includes/functions-view_template.php
sc0ttkclark 9b6f29a
Merge branch '2.x' into feature/5470-recursive-if-shortcode
sc0ttkclark a2fa0b6
Merge branch '2.x' into feature/5470-recursive-if-shortcode
sc0ttkclark f95a567
Merge branch '2.x' into feature/5470-recursive-if-shortcode
sc0ttkclark 47522f5
Merge branch '2.x' into feature/5470-recursive-if-shortcode
sc0ttkclark 3d1519b
Merge branch '2.x' into feature/5470-recursive-if-shortcode
sc0ttkclark 2b40df0
Merge branch 'main' into feature/5470-recursive-if-shortcode
JoryHogeveen 08635d2
Allow field traversing in template commands
JoryHogeveen 767c198
Also support taxonomies
JoryHogeveen a5a8b84
Update version
JoryHogeveen 6ec1ca1
Merge branch 'main' into feature/5470-recursive-if-shortcode
JoryHogeveen 65e23c1
Add traversal tests for if statements
JoryHogeveen 6c7e426
Add traversal tests for each statements
JoryHogeveen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Were the changes at https://github.com/pods-framework/pods/pull/5471/files#diff-3af4ca77fc3cd86765f464bb6fa7000725503257e80ccc885464b3ad43ab36c4L536-L540 not enough to do what you wanted here, is this part of the code still necessary? It seems that the previous field() alone would do what this does
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, currently only using the field method isn't enough. The field type and Pod object needs to be updated as well so traversals will work properly.
However, I do agree that this might not be the best way to do this.