10 votes

Conditional for empty relationships field

Long time to add to this but... {relationship-field} do relationship stuff {if relationship-field:no_results} Empty stuuf {/if} {/relationship-field}
user avatar
5 votes
Accepted

How to move all Playa relationship to EE relationships

It's a pretty simple operation, since they are stored very similarly. First, backup your database. Then, run this code in a PHP-enabled template: <?php $playa = ee()->db->query("SELECT * ...
user avatar
  • 17.4k
5 votes
Accepted

convert EE relationships to Playa

Always read the manual Steven!!! http://docs.pixelandtonic.com/playa/using/converting/relationships.html
user avatar
  • 2,473
3 votes

Related entries using Playa

Looks like your missing dynamic="no" parameter on the exp:channel:entries tag. However, it seems like you might be over complicating things as the exp:playa:children would work by itself if you pass a ...
user avatar
  • 4,805
3 votes
Accepted

Custom Fields adding <p> Tags

Not sure if you want to use a plugin or not but you could strip out anything you don't want using Hacksaw: http://devot-ee.com/add-ons/hacksaw Something like this might do it for you: {exp:...
user avatar
  • 226
3 votes
Accepted

EE 2.8.1 relationships change

You must prefix all of the variables inside of a parents tag with parents:,including count and total_results. You also have an extra conditional which you don't need - and, note the change in ...
user avatar
  • 17.4k
3 votes
Accepted

Advice for a user-friendly relationship dropdown

Pixel & Tonic's Playa, which is a many to many relationship field, does have one seriously awesome benefit for you in this regard - filtering. It allows you to filter by category and search by ...
user avatar
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 ...
user avatar
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,...
user avatar
  • 11.3k
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 --}...
user avatar
  • 5,234
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 ...
user avatar
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 ...
user avatar
  • 3,572
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 ...
user avatar
  • 5,900
2 votes

No output on a Playa Low Variable

Adding to this, I had to put transcribe=“disable” inside of the Playa tag (not the ece loop) to get it to output. Credit goes to EE Harbor.
user avatar
  • 21
2 votes

No output on a Playa Low Variable

You could try and use the playa:children tag instead of the Parse tag: {exp:playa:children var="lv_book_slider_en"} {title} {/exp:playa:children}
user avatar
  • 11.3k
2 votes
Accepted

Some missing channel entries in relationship fieldtype

In Admin > Channel Administration > Channel Fields Add/Edit, check your Relationship Field Options and compare against the entries you are expecting to appear. Include in Selection Expired Entries? ...
user avatar
  • 2,255
2 votes

Displaying only one related entry per list

Assuming that the alternate dates are related to the "parent" tour via a Playa field in each "alternate" entry (so the alternate dates are "children"), you'd simply do this: {exp:channel:entries ...
user avatar
  • 17.4k
2 votes

How do I display matrix fields inside of a relationship field (channel entry)?

Matrix doesn't do the inheritance like that. Just simply used the fields as you would a regular matrix field {exp:channel:entries channel="fruit" limit="1"} {related-entry-kinds} <-- name of ...
user avatar
2 votes

Expression Engine Menu-Menu items

I would recommend you try to stop thinking in terms of 'pages', as you'll only end up frustrated by EE. For your purposes, what you are creating are categorised events, not pages. So set up a single ...
user avatar
  • 4,885
2 votes

Transcribe with Relationship fields

We ran into the same issue with Transcribe and Playa fields. We had a 'staff' channel (amongst many others) so we had lots of identically named entries for each person in each language (4 x John ...
user avatar
  • 1,349
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 ...
user avatar
  • 5,781
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. ...
user avatar
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" ...
user avatar
  • 2,255
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 ...
user avatar
  • 11.3k
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 ...
user avatar
  • 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 ...
user avatar
  • 5,900
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 ...
user avatar
  • 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} {...
user avatar
  • 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 ...
user avatar
  • 5,900
1 vote
Accepted

Grouping entries by relationship field (title)

In this case the Club Listing entries would be the parents of the Zone entries. You should be able to loop through the Zones channel and call the parents of each Zone entry within the Club Listing ...
user avatar
  • 398

Only top scored, non community-wiki answers of a minimum length are eligible