Copied to clipboard

Flag this post as spam?

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


  • Tom 161 posts 322 karma points
    Mar 19, 2015 @ 18:31
    Tom
    0

    Pros and Cons between Macro and Partials

    While I kinda know the basics, what's the difference between marco and a partial view?

    Do both work with the built-in grid system?

    Thanks 

     

    Tom

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 19, 2015 @ 18:51
    Jan Skovgaard
    0

    Hi Tom

    I guess there is not that much difference really. But when creating partial view macros you have the opportunity to add parameters, which can be filled out if you need to insert a macro into a rich text editor for instance - Like the image carousel I know you're working on ;-). Those params can't be passed to a partial view like that for instance.

    Does this make sense? :)

    /Jan

  • Tom 161 posts 322 karma points
    Mar 19, 2015 @ 19:52
    Tom
    0

    Yes. And does both work with grid layout?

    Thanks so much!

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 19, 2015 @ 20:13
    Jan Skovgaard
    0

    Hi Tom

    Yes they can - If you have an installation using the fanoe starter kit you can see that some of the possible options in the grid editor are defined as partial views in the Settings section in the /Partial VIews/Grid folder - Don't know if these exists in a clean installation as well (Using no starter kits).

    And as Antoine is describing here http://24days.in/umbraco/2014/grid-macros/ it's possible to use partial view macros as well.

    Hope this helps.

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft