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 update my template and my umbraco version and now umbraco cannot print the content of alias.
Anyone knows why?
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?
Yes, this image is from the same document.
Then i try to use vorto tag like Nicholas said
And finally i receive this error when i try to use vorto
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.
Finally this works!
Like you said, Model.GetVortoValue but i have to put like this
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:
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...
Write your reply to:
Image will be uploaded when post is submitted