It's all implemented and working in 6.0 BUT, there is no ui tooling support in the back office. There's a task for it but not sure it will make it into 6.0
@anth... I think you're confused a bit :-)
A 'partial view macro' IS a macro. It's a need macros engine that you can use native mvc views with, just like you can user controls, python, razor, etc.
You can of course use normal partial views all you like, but if you want to use an mvc partial view in a macro for what use (such as to out inside the wysiwyg editor) than you'd use the new partial viewing macros.
This will supercede razor macros entirely, you would use these instead of razor macros since this unifies the syntax of all views since it uses the exact same objects and query structure as mvc (and uses native mvc to render).
Sent from my phone
@Jonas: The purpose of a macro is to render a view/user control/python/razor/whatever script with available parameters inside the WYSIWYG editor. There's really not many other reasons to use macros since Umbraco supported UserControls in v3 (or whenever that was). People still use macros for rendering user controls, etc... but there's really zero reason to do so unless you are rendering the content inside of the WYSIWYG editor where an editor can edit a parameter that is injected into the macro (i.e. another selected node in the tree). I guess the only other reason to use a macro is if you want to execute XSLT to render since without a macro I'm not sure there's another really nice way to render XSLT. As for MVC Views, etc... people should really only use macros to render these for use in the WYSIWYG editor since normal partial views, child actions, are faster and provide the same functionality.
--
You received this message because you are subscribed to the Google Groups "Umbraco development" group.
To post to this group, send email to umbra...@googlegroups.com.
To unsubscribe from this group, send email to umbraco-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/umbraco-dev/-/0K6OusUq65kJ.
For more options, visit https://groups.google.com/groups/opt_out.
@Shannon,
Part of the reason I’m still using macro’s (I’d love to get rid of it as it’s a pita when using CI) is not to render them through the RTE but to take advantage of “advanced” caching, meaning a header/footer could be cached based on parameters supplied to the macro (eg. Language of the page)
Don’t think I could achieve this NOW when using cached partials, right, as the docs says that if the model and/or view data is different, result will be the cached result of the first execution, which we don’t want in multilang scenario’s.
Or did I misunderstand all that?
Cheers,
/Dirk
We could make it work :-)
In any case, this thread is not to discuss why we use macros, it's about the new partial view macro engine for which you can use mvc partial views for macros... Which now supersede razor macros.
Sent from my phone