———I would like to display a list of related items on a product detail page.
So far I’m getting too broad a list.
The recent post recommending the dynamic=“off” parameter was helpful but not definitive.
In the code below I think I’d like to have a variable instead of the “prod_sku=“101”
start related code
{exp:weblog:entries weblog="products" search:prod_sku="101" dynamic="off" offset="1"}
{title}<br>
{exp:weblog:categories}
{category_name}
{/exp:weblog:categories}
{/exp:weblog:entries}
————- This segment of code below seems to actually render the list I want but hard coding the category is not efficient. Category 22 defines the product relationships.
{exp:weblog:entries weblog="products" orderby="prod_sku" sort="asc" category="22" dynamic="off"}
{title}<br>
{/exp:weblog:entries}
I’d be grateful for suggestions!
cf