Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.
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
3 votes

How do I check for an empty field in a child entry?

What version are you using? We fixed this problem in 2.9.3, though you can apply the solution if you'd rather not update. Open system/expressionengine/libraries/channel_entries_parser/Preparser.php ...
user avatar
  • 520
2 votes

Display ALL latest related entries using Playa

There is not a way to relate certain entries to another automatically with Playa. Actually you don't need to relate entries to a certain member, because EE already does that for you. When a member is ...
user avatar
  • 269
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

Related entry's doesn't work

Relationships changed in expressionengine 2.6. It looks like your template code won't work in 2.9.2. See the v2 docs on relationships: https://docs.expressionengine.com/v2/add-ons/channel/...
user avatar
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
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 ...
user avatar
  • 1,577
1 vote

How to display Related Elements and Hubspot Call to Action items on a page

From your description it looks like you are working with what is called a Relationship field. Check the documentation, but I suspect what is going on is that the template designer called the ...
user avatar
  • 3,562
1 vote

How to show a certain page based on the selection of prior two pages

Let me see if I can help here. I'll discuss how I would approach this and hopefully we can go from there or I'll revise to clarify if needed. I would probably try to tackle this in one of the ...
user avatar
  • 589
1 vote
Accepted

Issue with many relationship fields in a channel

Lets tidy this up: {exp:stash:set name="home_page_blocks" parse_tags="yes" trim="yes"}//Trim removes whitespace {exp:channel:entries channel="pages" backspace="1"} // Remove last '|' {...
user avatar
  • 3,163
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="...
user avatar
  • 17.4k
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-...
user avatar
  • 1,987
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 ...
user avatar
  • 3,562
1 vote

Group entries which have the same custom field using Stash?

You can use the match and against parameters to filter a list by the value of one or more columns. {!-- set the list --} {exp:stash:set_list name="groceries"} {stash:title}Cox Apple{/stash:title}...
user avatar
  • 5,234
1 vote
Accepted

Displaying only one related entry per list

I am going to give you a solution that would work not knowing how your channel entries are set up if i had more information i know i could figure this out for you with playa, however this solution ...
user avatar
  • 1,029
1 vote
Accepted

filter related entries by category

I'm not sure I get what you finally want, but to show the second group of categories try using the show_group parameter to the categories tag (with the category group id): {related_products:...
user avatar
1 vote

Relationship in expression engine?

Not sure I understand the question well but here is my take on it: Start with a url_title in your last segment Find the entry in channel E corresponding to that url_title Several entries in channel B ...
user avatar
1 vote

Relationship in expression engine?

It looks like you've forgotten to include your relationship field tag. Try this? {exp:channel:entries channel="B" } {e_tag_b} <h3>{e_tag_b:title}</h3> <p>{...
user avatar
  • 151
1 vote

Relationship into relationship

Guessing by the style of relationship tags you are using the best way to do this is to use an embed. Steps: 1.) Create a template with the code for the destinations with an embed variable in the ...
user avatar
  • 1,029
1 vote

Krea Content Elements Field and EE 2.6.1 Relationships Field - how to use parts of an article in the related articles section of a Single Entry Page

First off, your {images} tag is duplicated - instead of closing the first tag with {/images}, you have another {images}. Dunno if that's a simple typo from simplifying the actual template or not. ...
user avatar
  • 542
1 vote

Assets Field within Structure Entries

I have added an updated version of parse_file_paths by rsanchez as a fork which now will work in EE 3.x and up. All I did was to add the addon.setup.php file to the zip file with the appropriate ...
user avatar

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