Different Templates for 2 types of products
Posted: Tue Nov 06, 2012 2:46 pm
I see the example in the documentation about changing templates but it really has no example for using different templates for products.
What I am looking to do is:
Product A use: template A
Product B use: template B
Also what value is the administration interface looking for when it calls for Template Display?
Is the Template Display value the name of the html file?
<bean class="org.broadleafcommerce.common.web.BroadleafThymeleafViewResolver">
...
<property name="fullPageLayout" value="layout/fullPageLayout" />
<property name="layoutMap">
<map>
<entry key="account/" value="layout/accountLayout" />
<entry key="catalog/" value="NONE" />
<entry key="product/" value="product/template_a" /> <---------example of what I am looking to do
<entry key="product/" value="product/template_b" /> <---------example of what I am looking to do
<entry key="checkout/" value="layout/checkoutLayout" />
<entry key="checkout/confirmation" value="layout/fullPageNoNavLayout" />
<entry key="layout/" value="NONE" />
</map>
</property>
</bean>
Any Ideas would be much appreciated!
What I am looking to do is:
Product A use: template A
Product B use: template B
Also what value is the administration interface looking for when it calls for Template Display?
Is the Template Display value the name of the html file?
<bean class="org.broadleafcommerce.common.web.BroadleafThymeleafViewResolver">
...
<property name="fullPageLayout" value="layout/fullPageLayout" />
<property name="layoutMap">
<map>
<entry key="account/" value="layout/accountLayout" />
<entry key="catalog/" value="NONE" />
<entry key="product/" value="product/template_a" /> <---------example of what I am looking to do
<entry key="product/" value="product/template_b" /> <---------example of what I am looking to do
<entry key="checkout/" value="layout/checkoutLayout" />
<entry key="checkout/confirmation" value="layout/fullPageNoNavLayout" />
<entry key="layout/" value="NONE" />
</map>
</property>
</bean>
Any Ideas would be much appreciated!