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.

Next / Previous Entry with channel fields

January 21, 2014 11:50pm

Subscribe [2]
  • #16 / Apr 03, 2014 6:08pm

    sub_stance

    35 posts

    I have a feeling it’ a problem with the ‘channel:next_entry’ tag, since

    Embed tag:

    {exp:channel:entries channel="restaurant_reviews' entry_id='18'}
      {sub_title}
    {/exp:channel:entries}</code></pre>
    
    works with this:
    <pre><code>{exp:channel:entries channel="restaurant_reviews" status="open" limit="1"}
    {embed="embed/subtitle_custom_field"}
    {/exp:channel:entries}

    (pulls the {sub_title} from entry_id=18)


    but not with this:

    {exp:channel:next_entry channel="restaurant_reviews" status="open"}
    {embed="embed/subtitle_custom_field"}
    {/exp:channel:next_entry}

    is there another way i could go about not using the prev_entry & next_entry tags?

  • #17 / Apr 04, 2014 7:30am

    Boyink!

    5011 posts

    I still don’t see where you’ve verified that the embed variable is passing through.

  • #18 / May 01, 2014 3:23pm

    sub_stance

    35 posts

    in the embed/subtitle_custom_field:

    {exp:channel:entries channel="restaurant_reviews" entry_id='18'}
      {sub_title}
    {/exp:channel:entries}

     

    and I’ve successfully pulled the content from “embed/subtitle_custom_field” with this:

    {exp:channel:entries channel="restaurant_reviews" status="open" limit="1"}
    {embed="embed/subtitle_custom_field"}
    {/exp:channel:entries}

    pulls the {sub_title} from entry_id=18, which verifies the embed variable passes through properly


    but unfortunately when i use the same code for next/prev entry:

    {exp:channel:next_entry channel="restaurant_reviews" status="open"}
    {embed="embed/subtitle_custom_field"}
    {/exp:channel:next_entry}

    it still gives me the same error of just loading {sub_title} as text, instead of the embed

  • #19 / May 04, 2014 3:10am

    sub_stance

    35 posts

    So i got the embed variable passing through, but the embed variable (my custom field: {sub_title} ) is only showing from the single article currently being viewed, not the previous and next articles

    I think i may have misunderstood your explanation before Boyink!

    Let me know if what my problem i’m having now is clear or not

    Thanks again

  • #20 / May 10, 2014 6:44pm

    sub_stance

    35 posts

    still stuck on this issue… :(

  • #21 / Jul 27, 2014 5:18pm

    matthewcarleton

    25 posts

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

ExpressionEngine News!

#eecms, #events, #releases