3
votes
Relationship field entries total count
In addition to Bhashkar Yadav's answer, this worked successfully for me:
{exp:channel:entries channel='channel_xyz' status='not closed'}
{if relationship_field:total_results > 0}
...do ...
3
votes
Accepted
Relationship Field Conditional Not Working
Although it is technically less efficient, you should try embedding it to render as a tag in the conditional like so:
{if '{featured_movie:video_id}' != ''}
Try that. As in the docs, if it isn't ...
3
votes
Accepted
Build a Relationship
Since the Professor is the one with the relationship field then Professor > University is a Parent > Child relationship. So if you're in a University (Child) entry you need to use the parents tag for ...
3
votes
Stash and Multiple Grid Fields Not Populating
Let me show you how the parser will parse that code before Stash tries to capture it as a list. I'll assume your relationship field only allows you to select a single person:
{!-- first grid field --}...
3
votes
Accepted
Dynamic URL Based on Relationships
To answer this you need to think about what you want to have happen when EE sees a URL - only with this clear can you work out what the right approach would be.
So with your example, it sounds like ...
2
votes
Listing grid fields as a relationship choice
I don't think you'll be able to solve it this way. The intent of relationships is to relate Channel Entries together, not relate different data points in a specific entry to another entry.
I would ...
2
votes
Accepted
EE3 Relationships VS Playa
I haven't used the latest Playa but the with relationships being native it will stop painful upgrades to the CMS whenever you next upgrade - it's almost always better to rely on core modules then to ...
2
votes
Accepted
Children of Parent to Parent Relationship
You need another tag pair, as each tag pair loops through only that one relationship. You need to loop through another set of relationships within each relationship.
{rel_partner_teams}
{...
2
votes
Accepted
Querying for a relationship field
https://docs.expressionengine.com/latest/fieldtypes/relationships.html#accessing-children
To access the child entry to your Servers channel, just loop over the field like so:
{exp:channel:entries ...
1
vote
How do I display Relationship results from Low Search?
This was due to global setting being disabled. Filters can be enabled/disabled within the plugin's settings. One checkbox later and it works! Thanks for the fast support Low.
1
vote
Accepted
Datagrab import, relationshipfield inside grid
This is one that really you should direct to the author of Datagrab... it is quite possible though that the add-on does not support the importing of relationships within grids.
The datagrab web site ...
1
vote
Accepted
How to make a drop-down field use categories?
In EE5 there is an easy solution: create a channel called "Genres" and put your categories into a field in that channel, then you can tell EE to populate your Select field using the values from that ...
1
vote
Can I reference a relationship to a relationship?
It looks like I need a tag loop to do this. e.g., this doesn't work:
{event:contact:first_name}
This works:
{event}{event:contact:first_name}{/event}
1
vote
relating testimonials to multiple products with relationship field
Testimonials would be the parent channel Products are "children".
Your syntax looks ok, are you using any custom statuses in your Products channel? If so try adding a statuses parameter to the ...
1
vote
Accepted
How can I get "total_results" number of entries filtered using the parents tag?
I'm wondering if it's a bug. As your results total is 8, are there actually 8 parent entries across channels/entries for this particular entry?
Try this code, should pull in all parent titles:
{...
1
vote
Next / Prev Linking Of Entries in Relationship Field
I don't think you need an embed - have you tried the siblings tags?
https://docs.expressionengine.com/latest/fieldtypes/relationships.html#accessing-siblings
Someone has posted a potential solution ...
1
vote
How can I list channel entries with same relationship to another channel?
I'm pretty sure that this example pulled right from the relationships docs will work for you:
{exp:channel:entries channel="hotels"}
{hotel_destination}
{hotel_destination:siblings field="...
1
vote
How is the ExpressionEngine user guide documentation managed? By categories or channels with relationship fields to the child pages?
Last I heard (some years ago), it was all handled via Sphinx: http://www.sphinx-doc.org/ No idea if that's still true though.
1
vote
How to relate 2 channels / parent relationship fields HELP
All you should need is this. Assuming "parents" is the name of the relationship field in the Clinic channel.
ref https://docs.expressionengine.com/latest/fieldtypes/relationships.html#accessing-...
1
vote
How to remove a relationship field with php
You can use external entries plugin like as below:
{exp:external_entries:delete table="exp_relationships"
search:parent_id="{segment_1}" AND search:child_id="{segment_2}" debug="no"}
Plugin is not ...
1
vote
Show different content based on url segement
Your syntax is accurate; products/product-detail should be embedded if segment_3 has a value. Perhaps you need to pass data into the embedded template?
Something like:
{embed="products/product-...
1
vote
Playa: Complex, nested and filtered
You could use {exp:playa:coparents} to list other parent entries (trips) that share the same child (outpost). Then within that loop, list the activity associated with each trip (I'm assuming you have ...
1
vote
Parent relationship in grid field type
I made a quick simple plugin that works around this issue. The plugin returns a pipe-separated list of entry ids which can then be used in a channel entries tag's entry_id or fixed_order parameters.
...
1
vote
Relationship field for navigation menu
Many URLs with summaries in <UL> <LI> structure, No doubt channel entry is needed. You can use both Relationships and GRID to accomplish the megamenu needs.
(As there are several plugins ...
1
vote
Member Relationships to single Entry
Another approach you might want to consider is using the VMG Chosen Member add-on.
Chosen Member gives you the ability to assign members to channel entries without having to turn those member details ...
1
vote
Accepted
How do I include a Relationship field inside a Grid?
I recall if you're inside a relationship inside a matrix you revert to standard tags, so this
<p>{content:links_to}{content:links_to:title}{/content:links_to}</p>
Changed to this
<p&...
1
vote
Representing relationships between members of an EE site?
Gavin,
I would recommend that you use Zoo Visitor to accomplish. Once installed it will convert your existing members to entries in a channel where you can easily add a relationship or any other ...
1
vote
Accepted
How to show category of entry within relationship field
I guess you should try something like this:
{relationship_field}
{relationship_field:categories}
{category_name}
{/relationship_field:categories}
{/relationship_field}
1
vote
Accepted
Get {count} for a Relationships field within a Grid field
Your code is right. You need to pass relationships field with grid prefix like this:
{grid_field}
{grid_field:relationships_field}
{grid_field:relationships_field:count}
// incorrectly ...
1
vote
Accepted
How can I make dynamic Grid (or Matrix) fields in the control panel?
It is not. The simplest solution is to have all four columns and simply instruct the content manager to use the appropriate 2nd, 3rd, or 4th column based on the value of the 1st.
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
relationships × 315playa × 42
grid × 42
channel-entries × 34
related-entries × 32
categories × 21
ee2 × 19
conditionals × 17
templates × 16
matrix × 14
stash × 14
safecracker × 13
parent × 13
ee3 × 11
reverse-related-entries × 10
low-search × 8
channel × 7
search × 7
query × 7
members × 5
control-panel × 5
custom-fields × 5
expresso-store × 4
solspace × 4
solspace-calendar × 4