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
I am using the Dialogue package on a solution. But it uses a model on the views (And is not inherting from UmbracoTemplatePage), so I can not access "@Umbraco.RenderMacro" and other Umbraco proterties. Is it somehow possible?
Thanks very much in advance.
Hello,
If you do this at the top of your page you should have those helpers available:
@inherits Umbraco.Web.Mvc.UmbracoViewPage<model>
Jeroen
Thanks very much!
What if I shall use @CurrentPage.Id, is it possible to access that option?
I'm not sure if that works. It depends on if that page has the current node available. Just try it ;-).
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
How to render macro on a view with a model
I am using the Dialogue package on a solution. But it uses a model on the views (And is not inherting from UmbracoTemplatePage), so I can not access "@Umbraco.RenderMacro" and other Umbraco proterties. Is it somehow possible?
Thanks very much in advance.
Hello,
If you do this at the top of your page you should have those helpers available:
Jeroen
Thanks very much!
What if I shall use @CurrentPage.Id, is it possible to access that option?
I'm not sure if that works. It depends on if that page has the current node available. Just try it ;-).
Jeroen
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.