expressionengine - EE2: embed not displaying properly -


i've got website 2 channels, news , products.

products displayed using embedded channel entries tag pair called marketing. news articles displayed using regular channel entries tag pair.

when user clicks on news article, website navigates new page (news/view) containing contents of news article in question. template includes embedded template containing products tag pair. problem occurs: published item displays news article. none of products display on news article template.

the homepage , 'news/view' mock-up:

{exp:channel:entries channel="news"}     {title}     <some markup>     {body} {/exp:channel:entries} {embed="includes/marketing"}  

the marketing embedded template looks like:

<some dividing markup> {exp:channel:entries channel="products"} <list markup>    {product_image}    {product_description} </list markup> {/exp:channel:entries} </some dividing markup> 

since homepage , 'news/view' template same, have no idea why products displaying on homepage , not 'news/view' page.

i'm not entirely sure try adding dynamic="no" channel:entries loop. seems resolve 99% of ee problems :)

{exp:channel:entries channel="products" dynamic="no"}


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -