Copied to clipboard

Flag this post as spam?

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


  • Dan White 206 posts 510 karma points c-trib
    Feb 20, 2013 @ 22:28
    Dan White
    0

    Performance - Partial View Macros

    I'm currently in the process of planning out the information architecture for a pretty large site (my first large Umrbaco site.) The way I'm planning it at the moment would makes pretty heavy use of partials & macros. I'm wondering if performance will become an issue if there are 20-30 macro calls per page?

    Little more detail

    Each section of the site will have a Content Blocks folder which will contain the data for each partial (e.g. a FAQs widget). In the RTE editors will insert a macro - "Content Block". The macro will consist of one content picker parameter from which they'll select a content node in the Content Blocks folder. 

    The Content Block macro script will work as a controller to load another partial view dependant on the docType of the selected content block node. 

    So, if someone has 10 Content Block macros inserted into the page, that's really 20 partial view calls. 

    Hope this made sense.

    Thanks!

Please Sign in or register to post replies

Write your reply to:

Draft