Hello,
I really need help. a little bit confusing about channel & related entries.
I have a channel:
1. Products
2. Manufactures
in products channel i have a relationship entries to manufacture (standard case):
1. I want to have template to show product channel but only some manufacture. This is sample template of manufacture (karcher): http://new.indoteknik.com/v1/mp_new/karcher
See Top Vacuum Cleaner categories—> The NILFISK (manufacture) product should not show in this categories or in Top High Pressure Washer—> the MAKITA (product) should not show.
My code:
{exp:channel:entries channel="store_manufacture" limit="1" disable="categories|member_data|category_fields"}
{exp:gwcode_categories entry_id="{entry_id}" depth="2" style="linear"}
{embed="v1_blok/blok_produk_manufacture_v2" category_id="{cat_id}"}
{/exp:gwcode_categories}
{/exp:channel:entries}
The embed of blok_produk_manufacture_v2
<div class="ym-g960-9 latar_utama_gradient ym-gr">
{exp:gwcode_categories cat_id="{embed:category_id}" limit="1" style="linear"}
<div class="header_1"><h2>Top {cat_name}</h2>
<p> <div>a href="{path='v1/pk'}/kat/{cat_url_title}">{site_url}themes/site_themes/agile_records/images/more.png</a></div><br />
</div><br />
{/exp:gwcode_categories}</p>
<p><br />
{exp:channel:entries channel="products" category="{embed:category_id}" limit="5" dynamic="no" disable="pagination"}<br />
{related_entries id="brand_manufacture"}<br />
{title} {!-- HOW TO SHOW ONLY THE SEGMENT_4 (KARCHER) PRODUCTS --}<br />
{/related_entries}<br />
{title}</p>
<p> {/exp:channel:entries}</p>
<p><br />
</div>really need guidance 😊