Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • marcelh 171 posts 471 karma points
    Sep 30, 2014 @ 13:07
    marcelh
    0

    Different templates per category or product

    I have the need that certain categories gets rendered differently from others. The same for products.

    Has anyone got experience or hints and tips for this?

  • Morten Skjoldager 440 posts 1499 karma points
    Oct 01, 2014 @ 11:50
    Morten Skjoldager
    0

    You can render macro's inside macro's (MACROCEPTION!). Have macro's per naming convention and then have a macro that renders out the macros if you're in a specific context (UCommerce.Runtime can tell you weather you're in a product or category page). So would the navigation as well so you can have two different macros that renders out the category or the product macro's.

    Hope that makes sence. 

    Regards

    Morten

  • marcelh 171 posts 471 karma points
    Oct 01, 2014 @ 13:14
    marcelh
    0

    Hi Morten! Thanks for your reply. I'm not using macro's in my MVC solution, but I can use partial views as well of course. Thanks for this hint!

Please Sign in or register to post replies

Write your reply to:

Draft