I have the same issue - no value returned by GetVortoValue and HasVortoValues methods.
I've found this error in the umbraco log:
ERROR Umbraco.Core.Dynamics.DynamicInstanceHelper - [T132/D9] An error
occurred finding and executing extension method "HasVortoValue" for
type "Umbraco.Web.Models.DynamicPublishedContent". Types searched for
extension methods were Umbraco.Web.Models.DynamicPublishedContent.
System.MissingMethodException: Method
'Umbraco.Web.Models.DynamicPublishedContent.HasVortoValue' not found.
The vorto package installation was successfull.
I've restarted the site. That does not help.
I don't use partial view for that page - I'm just modifing a document type template.
I've added that using as you adviced to the very top of my template.
Unfortunately that did not solve the issue - I'm still getting that error in log and no values at the page.
I believe the reason of issue is very simple but I can't find it out yet.
No value with GetVortoValue()
I need your help!
I have no value in a child page if a try to get a vorto text string.
I tried:
@item.GetVortoValue("title") --> empty String
@item.title --> Our.Umbraco.Vorto.Models.VortoValue
some ideas how to get the text string value?
thx&best regards
manuel
Hi Lele,
Did you check value in current culture in the CMS ? Is 'item' IPublishedContent type ?
THanks
Hi Alex
Thanks for your answer.
1. Yes i have two languages added and check it with the currnet culture name. this is working.
2. Yes it is IPublishedContent
best regards,
Manuel
AS I see at source code : https://github.com/mattbrailsford/Vorto/blob/master/Src/Our.Umbraco.Vorto/Extensions/IPublishedContentExtensions.cs
This method is pretty straightforward, it looks like the problem with data from Umbraco.
Thanks
Try to check with HasVortoValue method.
Hi
I'm a Umbraco newbee, first time using Vorto.
I have the same issue - no value returned by
GetVortoValue
andHasVortoValues
methods. I've found this error in the umbraco log:The vorto package installation was successfull. I've restarted the site. That does not help.
My template is:
Please advice what is wrong there. Any help is very appreciated.
did you extend your partial view with
?
/manuel
Thanks, Manuel
I don't use partial view for that page - I'm just modifing a document type template. I've added that using as you adviced to the very top of my template. Unfortunately that did not solve the issue - I'm still getting that error in log and no values at the page.
I believe the reason of issue is very simple but I can't find it out yet.
Please help.
GetVortoValue is only working with strongly typed Content (IPublishedContent) and not dynamic content... like CurrentPage
I've casted my page to the
IPublishedContent
- and now it works! :)Thank you very much Manuel!
your welcome :)
is working on a reply...