ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

embed template in reverse_related_entries question, help needed

April 26, 2012 7:12am

Subscribe [2]
  • #1 / Apr 26, 2012 7:12am

    dabcat

    7 posts

    In parent template I have something like

    {exp:channel:entries channel="challenges" limit="1" disable="categories|category_fields|pagination" status="men|women" dynamic="no" search:payment_plan_id="{segment_3}"}
      {reverse_related_entries channel="week_stats"}
      <div class="row panel">
      <div class="six columns">
       {embed="user/display" week_id="{entry_id}"}
    ...

    and embedded template looks like this:

    {exp:channel:entries channel="tracker" disable="categories|category_fields|pagination" search:tracker_relationship="{embed:week_id}"}
    ...
    code
    {/exp:channel:entries}

    Tracker channel has a relationship field “tracker_relationship” to “week_stats” channel. I cant get any results within embed template.

    What am I doing wrong?

    Thanks,
    Milos

  • #2 / Apr 26, 2012 4:34pm

    dabcat

    7 posts

    Bumping… really need help with this issue.

    Thanks!

  • #3 / Nov 22, 2012 4:13am

    Is your {embed:week_id} actually working actually working in the embedded template?
    I’m having a similar issue.
    Try outputting the {embed:week_id} as a straight variable to the screen.
    It doesn’t seem to be working for me.

  • #4 / Apr 12, 2013 1:15pm

    I’m still having problems with this issue. Anyone found a solution?

    Template 1

    {reverse_related_entries channel="clients"}
     {embed="services/project" client_id="{entry_id}"}
    {/reverse_related_entries}

    Template 2

    {embed:client_id}

    {embed:client_id} outputting same value to the page multiple times, rather than each Client having it’s ID output just once.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases