Yes of course, By the way the link you wrote here is my question :)
My issue is getting the @Model.Content to work, you can see it in my screenshot.
http://screencast.com/t/hIztq3m8k
My issue isn't with the Vorto package, but with Umbraco.
I can't seem to get the @Model.Content to work... once, I can get it to work I'll be able to use the Vorto package.
How can I use @Model.Content inside UmbracoViewPage?
Get current node from "UmbracoViewPage"
Hi I am using UmbracoViewPage in my contact form to get my custom model:
But I can't use:
How can't I use my property fileds besides using
I also need to use the Vorto extenstion which I can't use with @Umbraco.Field
Thanks
Hi Moran,
maybe this can help you:
https://our.umbraco.org/forum/developers/api-questions/52597-What-is-the-difference-between-UmbracoViewPage-and-UmbracoTemplatePage
You can use the @Model.Content syntax to solve this.
Best regards
Sören
Hi Thanks, but I already tried it and it doesn't work. I get and error when I try to use
http://screencast.com/t/hIztq3m8k
Hi Moran,
have you import the vortoextension like this?
Yes of course, By the way the link you wrote here is my question :) My issue is getting the
@Model.Content
to work, you can see it in my screenshot. http://screencast.com/t/hIztq3m8kOk, I don't use vorto this time. Please create a new topic directly in the vorto forum here and link to this topic:
https://our.umbraco.org/projects/backoffice-extensions/vorto/bugs-feedback-suggestions
Then the package owner (Matt Brailsford) can see this and help you ;-)
Best regards,
Sören
My issue isn't with the Vorto package, but with Umbraco. I can't seem to get the
@Model.Content
to work... once, I can get it to work I'll be able to use the Vorto package.How can I use
@Model.Content
insideUmbracoViewPage
?http://screencast.com/t/JneTEplY4MOW
Ok, it seems that the issue comes from your custom contactViewModel. Model.Content needs an IPublishedContent.
Maybe you can create a new model (i.e. called CurrentPage) of type IPublishContent (Documentation: https://our.umbraco.org/documentation/Reference/Querying/UmbracoHelper/).
With this new model you should can use this (CurrentPage.Content)
Thanks for the help, I build an Id field in my model for the page Id.
the view Model
and called it from my view
You're great man!!!
is working on a reply...