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 ...
- 213
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 ...
- 111
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 --}...
- 5,234
3
votes
Point a Low:Search result at its parent
@Blatant is on the right track, but the code example isn't optimal.
Since the Results tag builds upon the native exp:channel:entries tag, you're able to use the native Relationships Field options. So,...
- 11.3k
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 ...
- 3,587
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 ...
- 5,900
2
votes
Accepted
Channel Entries - searching relationship field?
This is easy using Low Search and its Relationships filter. You don't necessarily need a search form, as you can use the Results tag as a drop-in replacement for the channel:entries tag. Then you can ...
- 11.3k
2
votes
Accepted
using Relationships field, want to display job listings per facility
Expanding a bit on @CreateSean's comment to your question, you can use the parents:count and parents:total_results variables much like you'd use them in the Channel entries tag to generate "wrapper" ...
- 2,255
2
votes
Having trouble pulling titles from another channel into a sidebar
You can't have a exp:channel:entries tag inside itself, from your comment above it looks like you're using relationships. You should be using the appropriate tags to pull in the related entries. ...
- 688
2
votes
Accepted
Point a Low:Search result at its parent
Really we need to see your template code as it's not really clear what you're doing/trying.
However would it not be a case of using an embed or channel entries loop within the search results? Thats ...
- 2,418
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 ...
- 5,900
2
votes
Create a list of entries where parents status is open
If I understand you needs correctly, and you need art list w/o grouping by artists (for list for last artworks as example) :
{exp:query sql='SELECT GROUP_CONCAT(child_id SEPARATOR ',') as art_ids ...
- 5,781
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 ...
- 3,163
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}
{...
- 17.4k
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 ...
- 5,900
1
vote
Create a list of entries where parents status is open
Unless I'm missing something this is really straightforward. The channel:entries tag assumes the open status so you don't even need to specify it.
Assuming you have a relationship field in the ...
- 1,647
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.
...
- 4,885
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 ...
- 2,177
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 ...
- 3,587
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&...
- 3,163
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 ...
- 4,757
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}
- 2,177
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 ...
- 2,177
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.
- 17.4k
1
vote
Accepted
Using limits on exp:channel:entries
I've found the simplest way is to use stash like this:
{exp:channel:entries channel="childChannel"}
{exp:stash:set_list name="related" parse_tags="yes"}<!-- Set the list -->
{...
- 3,163
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 ...
- 5,234
1
vote
Accepted
How to get Low Search results based on the category of a related item?
Low Search cannot do this out of the box, but you can achieve it with either a custom filter or an extension.
For example, if you use the low_search_pre_search hook, you can read the Region category, ...
- 11.3k
1
vote
Accepted
Solspace Importer: Native EE Grid and Relationships
Nope, Importer does not support importing into Grid fields, nor does it support creating/populating relationship fields. Have you looked at DataGrab?
Solspace does have a 30 day money back guarantee.
- 17.4k
1
vote
Accepted
How to get the parent entry ID while inside relationship loop?
You're entering an infinite recursive loop with your code there, hence the memory exhaustion. All you need to do is this:
{doctors_locations}
Location Title: {doctors_locations:title}
...
- 17.4k
1
vote
Accepted
Outputting only one of each item within a relationship tag
I see 2 options, firstly you might be able to acheive this with Stash, make a list of the product_label entry id's and check this list as you print out the next one, if its in the list don't print.
...
- 2,418
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
relationships × 313playa × 42
grid × 42
channel-entries × 34
related-entries × 32
categories × 21
ee2 × 19
conditionals × 17
templates × 16
matrix × 14
stash × 14
safecracker × 13
parent × 12
ee3 × 11
reverse-related-entries × 10
low-search × 8
channel × 7
query × 7
search × 6
members × 5
control-panel × 5
custom-fields × 5
expresso-store × 4
solspace × 4
solspace-calendar × 4