I have a timetable of agenda times in a channel called "agenda" with a relationship to "events"

I'm trying to control which agenda times show using the URL, but no events show up. In "agenda" you pick 1 "event" to be related with.

I want only the agenda items from "my-event" if it is the 3rd segment to show.

Thanks in advance for any help pointing me in the right direction.

  {exp:channel:entries channel="agenda" orderby="date" sort="asc"   } 

{if agenda_event:url_title == segment_3}

      <td>{agenda_start format="%g:%i"}</td>
      <td>{agenda_speakers}<a href="{path='speakers/bio/{agenda_speakers:url_title}'}">{if agenda_speakers:speaker_intro != ""}{agenda_speakers:speaker_intro}{/if} {agenda_speakers:speaker_first_name} {agenda_speakers:speaker_last_name}{if agenda_speakers:speaker_outro != ""},{agenda_speakers:speaker_outro}{/if}</a>{/agenda_speakers}</td>

  • What do you get when you just output {agenda_event:url_title} ? – jrothafer Nov 15 '15 at 23:01
  • Nothing. Unfortunately. If i put dynamic="no" then I get all the results – jsuissa Nov 16 '15 at 0:04
  • Try putting the out put of {agenda_event:url_title} inside of your conditional. Do you then only get the url_titles you are looking for? – jrothafer Nov 16 '15 at 0:19
  • Not sure I follow in the code example isn't inside? – jsuissa Nov 16 '15 at 3:26
  • Try this: {if agenda_event:url_title == segment_3}{agenda_event:url_title}<br>{/if}. Do you get a list of url_titles that you want? Make sure this is inside of your {exp:channel:entries} loop. Also, could you please expand your question to include some example URLs and the wanted output for those URLs? – jrothafer Nov 16 '15 at 3:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.