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
As the title asks, is it possible to render a macro from within the View of a SurfaceController?
What about Umbraco field content, can that be rendered inside a SurfaceController?
You have access to the UmbracoHelper as a property inside of a SurfaceController so give it a try!
Umbraco.RenderMacro(....)
should work, same with Field
You also have access to the UmbracoHelper inside of your view too with @Umbraco just depends on what your view is inheriting from, you'll have to at least use UmbracoViewPage<T>
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Rendering a macro from inside a SurfaceController's View
As the title asks, is it possible to render a macro from within the View of a SurfaceController?
What about Umbraco field content, can that be rendered inside a SurfaceController?
You have access to the UmbracoHelper as a property inside of a SurfaceController so give it a try!
Umbraco.RenderMacro(....)
should work, same with Field
You also have access to the UmbracoHelper inside of your view too with @Umbraco just depends on what your view is inheriting from, you'll have to at least use UmbracoViewPage<T>
is working on a reply...