Last active
June 9, 2020 21:36
-
-
Save CreativePoweredGeek/0468f8a5823ceb43110fed665d14a96d to your computer and use it in GitHub Desktop.
ExpressionEngine Fluid field with a grid field with a relationship field with multiple channels
This file contains hidden or 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
{fluid_field} | |
{fluid_field:grid_field} | |
{content} | |
{if '{content:relationship_field:channel_short_name}' == 'channel_a'} | |
{content:relationship_field} | |
{content:relationship_field:title} | |
{content:relationship_field:custom_field_a} | |
{/content:relationship_field} | |
{if:elseif '{content:relationship_field:channel_short_name}' == 'channel_b'} | |
{content:relationship_field} | |
{content:relationship_field:title} | |
{content:relationship_field:custom_field_b} | |
{/content:relationship_field} | |
{if:else} | |
{/if} | |
{/content} | |
{/fluid_field:grid_field} | |
{/fluid_field} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is an ExpressionEngine template example of a Relationship field referencing multiple channels ,embeded within a Grid Field, inside a Fluid Field.