I’m trying to display a different set of product attributes based on a condition. If weblog = something then show these attributes. So I’m creating seperate templates that display summary information on the products. I want to do the conditional and then display the summary code thats in the template.
{exp:weblog:entries weblog="vector|helix|prism|matrix" style="linear" disable="member_data|trackbacks"}
{embed="embeds/vector_summary"}
{/exp:weblog:entries}Its does not seem to work. It just displays the contents of the template instead of the value of the tags in the template.
vetor_summary Template used in the above embed.
<h2> {title}</h2>
<p>{product_thumbnail}<br />
Power Consumption: {power_consumption}<br />
Number of LEDs: {led_num}<br />
Designed to Replace: {designed_to_replace}<br />
{spec_sheets}<br />
<a href="http://{url_title_path=products/detail}">View Product Details >> </a>I cut and pasted the code in place of the embed and it works. Fixing this helps me display certain product attributes for certain product line. I can conditionally say, if product line = this then show this embed template to display the product. Not all products have the same attributes but they have common ones. So I am using one custom field group for all. Can someone tell me why this wont work or a better approach? thanks!