Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi, I'm working on my first Umbraco MVC project (v6.1.5) and it's all a bit new to me.
Something that's not fully clear is the difference between Partial Views (under Section) and Partial View Macro File (under Developer)
When to use one or the other?
Thanks a lot for your help,
I'm asking this question because I want to implement subnavigation on a page, and I'm not sure wether to use a Partial View (settings section) or a Partial View Macro File (Developer section)
Doug just gave a nice explanation here: http://our.umbraco.org/forum/developers/razor/44664-Confused-over-when-DynamicNodeList-is-returned?p=0#comment160691
You can read more about Partial views here: http://our.umbraco.org/documentation/Reference/Mvc/partial-views
Sebastiaan already said there isn't much difference: https://twitter.com/cultiv/status/377728603028742144
I think the main difference is that a partial view macro file can be used as a macro in the RTE and a normal partial view can't. It also has macro parameters.
Thanks! Good to know that Partial View Macro files come with parameters. Think I stick with the Partial View Macro files, as it's usage resembles most that of the 'old' Macro Script files.
you can also try my approach which is explained in detail here
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted