Hot answers tagged

5

You can, you just need to hold Playa’s hand a little so it knows which entries all of those tags belong to. You do that with Playa’s var_prefix param: {exp:playa:parents ... var_prefix="consultation"} Physician: {consultation:cf_consult_doctor var_prefix="doctor"} {doctor:title} {/consultation:cf_consult_doctor} {/exp:playa:parents}


3

You'll need the name of the relationship field on your parent entries. Instead of using static_parent_page == 0, try a namespaced no_results. {exp:channel:entries channel="static" sort="asc" offset="1" dynamic="off"} {static_parent_page} {if static_parent_page:no_results} <li> <a class="active" href="{url_title_path=static/...


2

What I ended up using was a siblings tag, which I somehow missed when I initially posted this. {siblings field="publisher_rel"} {if siblings:title}<li><strong>Publisher: </strong>{siblings:title}{/if} {/siblings}


2

You are actually trying to access the child ("Publisher") of a parent ("Book") - because you're currently viewing another child of the "Book" ("Author"). So that's why {parents field="publisher_rel"} won't work. This code you posted should work, with one tweak - you need to add the field you want to display (in this case, :title): {parents field="...


2

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 channel - "events", and add an events category group to categorise each one as local or international. How you list these events on the front end of the site is ...


2

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 FROM exp_relationships LEFT JOIN exp_channel_titles ON exp_relationships.parent_id=exp_channel_titles.entry_id WHERE exp_channel_titles.status = "open" AND ...


1

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: {parents} {parents:title}<br> {if parents:count == parents:total_results} Total: {parents:total_results} {/if} {/parents}


1

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="hotel_destination"} {hotel_destination:siblings:title} {/hotel_destination:siblings} {/hotel_destination} {/exp:channel:entries}


1

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} Location Entry ID: {doctors_locations:entry_id} Doctor Title: {title} Doctor Entry ID: {entry_id} {/doctors_locations} You would only further use {...


1

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 Artists channel where you specify which pieces from the Artwork channel belong to that artist the cod is roughly: {exp:channel:entries channel="artists"} {...


1

auto-assign category to parents set to NO fixed it


1

That code should work but you might want to use the var_prefix parameter to avoid variable name conflicts. Also, because Low Alphabet is a plugin and EE's quirky template parser, you'll need to add parse="inward" to the opening low_alphabet:entries tag if you're using other tags inside it (as per the docs).


1

2.6.1 has a handful of bugs related to sorting/ordering relationships. Upgrading to 2.7.3 should sort those for you.


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