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}
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 ...
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 ...
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 ...
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/...
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 ...
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
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 ...
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 ...
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 '|'
{...
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 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
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
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}...
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 ...
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:...
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 ...
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>{...
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 ...
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.
...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
related-entries × 60relationships × 32
reverse-related-entries × 9
playa × 8
categories × 6
stash × 4
conditionals × 4
grid × 4
ee2 × 3
channel-entries × 3
safecracker × 3
related × 3
templates × 2
ee3 × 2
search × 2
structure × 2
low-search × 2
custom-fields × 2
parse-order × 2
expresso-store × 1
solspace-freeform × 1
assets × 1
members × 1
add-on × 1
pixelandtonic × 1