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
Hello,
I update my template and my umbraco version and now umbraco cannot print the content of alias.
Anyone knows why?
Hi Luis,
In line 27 you are accessing a property by doing Model.PropertyName, however in line 28, you are doing @Model.Content.GetVortoValue.
Can you explain what Model is because using two different approaches seems quite strange?
Can you show where the Model is defined in the view please?
Thanks,
Nik
Hi Nik,
Yes, this image is from the same document.
Then i try to use vorto tag like Nicholas said @Html.Raw(Model.Content.GetVortoValue("teste"))
And finally i receive this error when i try to use vorto
Thanks!
Ah, okay. Because your view inherits from UmbracoViewPage you don't need the Content part to access the properties. You should just be able to do Model.GetVortoValue instead.
Give that ago.
Hello!
Finally this works!
Like you said, Model.GetVortoValue but i have to put like this
@Html.Raw(@Model.GetVortoValue("teste"))
If i use Model.Content.GetVortoValue this wouldn't work because according to the visual studio i'm trying to access to a protected class.
In addition to what Nik mentioned, I'd add that this line has an extraneous at sign:
@Html.Raw(@Model.Content.GetVortoValue("bodyText"))
Instead, remove that at sign:
@Html.Raw(Model.Content.GetVortoValue("bodyText"))
Perhaps that's not your issue here, but that at sign is certainly not necessary and could potentially cause issues.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Problem with vorto
Hello,
I update my template and my umbraco version and now umbraco cannot print the content of alias.
Anyone knows why?
Hi Luis,
In line 27 you are accessing a property by doing Model.PropertyName, however in line 28, you are doing @Model.Content.GetVortoValue.
Can you explain what Model is because using two different approaches seems quite strange?
Can you show where the Model is defined in the view please?
Thanks,
Nik
Hi Nik,
Yes, this image is from the same document.
Then i try to use vorto tag like Nicholas said @Html.Raw(Model.Content.GetVortoValue("teste"))
And finally i receive this error when i try to use vorto
Thanks!
Ah, okay. Because your view inherits from UmbracoViewPage you don't need the Content part to access the properties. You should just be able to do Model.GetVortoValue instead.
Give that ago.
Hello!
Finally this works!
Like you said, Model.GetVortoValue but i have to put like this
@Html.Raw(@Model.GetVortoValue("teste"))
If i use Model.Content.GetVortoValue this wouldn't work because according to the visual studio i'm trying to access to a protected class.
Thanks!
In addition to what Nik mentioned, I'd add that this line has an extraneous at sign:
Instead, remove that at sign:
Perhaps that's not your issue here, but that at sign is certainly not necessary and could potentially cause issues.
is working on a reply...