Copied to clipboard

Flag this post as spam?

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


  • Dean 55 posts 98 karma points
    Dec 13, 2010 @ 01:44
    Dean
    0

    A quick question with regards to Templates, Marcros and performance

    I have done a few sites with Umbraco and have been unsure when to use marcros and when to use templates. Linguistically they don't sound like they should be interchangable to I was just looking to clarify when to use templates.

    I have been using templates for everything other than when I would like a macro for the sole purpose that the editors can use it.

    So for example, in the past I have used Ubmraco Examine for my site search and I have placed the logic to the search in a Search-Results.master template code behind file. The same would go for a products listing page. I have placed all of the logic to retrieve the product list and data in a product-category.master code behind file.

    My sites end up being built out of  a lot of master pages much like a traditional site would be built with .aspx pages.

    I know I could have used macros for the two examples above. Everything works fine. But does using templates over the macros have an effect of performance?

    Is there a "right" or "wrong" in this situation?

    Thanks for advice!

Please Sign in or register to post replies

Write your reply to:

Draft