1

loping through channel entries tag, I can use {title} for the title of the article.

inside the channel entries loop for the specific article, I use an EE partial with get list inside. Inside the list I have a stash var called "title".

{stash:title}{title}{/stash:title}

While using the EE partial, {title} always prints the title of the actual channel entry. While using it not as EE partial, but as an EE embed, the var {title} is choosen from the stash list.

code:

//stash embed which creates the list with related entries
{exp:stash:embed:ech:stash_related_entries stash:entry_id="{entry_id}"}

{exp:channel:entries url_title="{segment:entry}" dynamic="off"}
   //display the detail article

   //show related article inside the body of the article
   {s_showRelatedEntries}

{/exp:channel:entries}

code EE partial:

    {exp:stash:parse process="end"}
        {exp:stash:get_list name="dataRelated"}
            {title}
            //HERE prints the title of the detail entry
        {/exp:stash:get_list}
    {/exp:stash:parse}
1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.