1

I would like to map one specific category to a different phtml file in my theme. Hoping to do this without creating a sub-theme for just one file.

ALMOST have it... but need some help:

I put the following into Category > Custom Design > Custom Layout Update

<reference name="content">
     <block type="catalog/category_view" name="category.products" template="catalog/category/view_madeby.phtml" /> 
</reference>

This works, but it's outputting the contents of view_madeby.phtml twice when I view the category. Do you know why this is happening?

1 Answer 1

3

"Category.products" block is outputting twice, because you are adding it second time. Instead it just change block template:

<reference name="category.products">
    <action method="setTemplate">
        <template>catalog/category/view_madeby.phtml</template>
    </action>
</reference>
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.