Created Vorto dataType as a test for a textstring.
Inserted Vorto textstring in a docType. The editor showed: {{currentLanguage.name}} {{currentLanguage.nativeName}}
When I open the content page to edit, there is no textstring editor within the Vorto frame and the following error shows in a red bar at the bottom of the page:
Request error: The URL returned a 404 (not found):
views/directives/umb-editor.html
This is a fresh, unused, empty install apart from the two basic templates and a docType with a single property. No files have been deleted.
Can anyone advise if Vorto works properly in 7.4.1?
Also finding that with the new ModelsBuilder working, @Model.Title gives an error on the Title of "VortoValue is inaccessible due to it's protection level" Is there a way of using Vorto with strongly typed Models?
Should probably have put the ModelsBuilder issue in a separate thread. I'd like to use it but might have to ditch it if I can't get Vorto values out (yet ;) ).
Thanks for the links. I've only just got back on to the job. I have the models builder working and it looks like you're saying that for each and every Vorto dataType I'd have to create a partial class.
Vorto Editor not found
Fresh 7.4.1 site with latest Vorto installed.
Created Vorto dataType as a test for a textstring.
Inserted Vorto textstring in a docType. The editor showed:
{{currentLanguage.name}} {{currentLanguage.nativeName}}
When I open the content page to edit, there is no textstring editor within the Vorto frame and the following error shows in a red bar at the bottom of the page:
This is a fresh, unused, empty install apart from the two basic templates and a docType with a single property. No files have been deleted.
Can anyone advise if Vorto works properly in 7.4.1?
Also finding that with the new ModelsBuilder working,
@Model.Title
gives an error on the Title of"VortoValue is inaccessible due to it's protection level"
Is there a way of using Vorto with strongly typed Models?Thanks,
Craig
Hi Craig
Try to edit the vorto.js, changing path of umb-editor.html file to umb-property-editor.html:
Alessandro
Thanks Alessandro, that worked a treat :)
Should probably have put the ModelsBuilder issue in a separate thread. I'd like to use it but might have to ditch it if I can't get Vorto values out (yet ;) ).
Hello,
For Vorto and the ModelsBuilder to work you need to override the property in a partial class. Something like this: https://github.com/jbreuer/1-1-multilingual-example/blob/master/Sources/Umbraco.Extensions/Models/UmbNewsItem.cs#L31
In the there you just need to use GetVortoValue instead of GetPropertyValue. You can find more info + a good example in this blog: http://24days.in/umbraco/2015/multilingual-vorto-nested-content/
It's still using the old version of the ModelsBuilder, but everything should work the same.
It's best to generate the models with the Visual Studio extension so it's easier to override the properties. You can download it here: https://visualstudiogallery.msdn.microsoft.com/ef0896ab-e2eb-47fc-8fcb-79dad0f66e30
More info in this topic: https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/75079-74-models-builder
Jeroen
Hello,
Did the above examples help?
Jeroen
Hi Jeroen,
Thanks for the links. I've only just got back on to the job. I have the models builder working and it looks like you're saying that for each and every Vorto dataType I'd have to create a partial class.
The 7.4.1 site I'm building will be using the Grid and I notice https://our.umbraco.org/forum/developers/extending-umbraco/73997-problem-using-umbraco-73-with-vorto-extension-and-grid-data-type hasn't had an answer yet so I'm wondering if I'm biting off more than I can chew and making things too "bleeding edge" for the relatively simple site I'm building with it's limited budget.
I'm thinking I'll use the ModelsBuilder where it makes sense but maybe not Vorto just yet. Having noted this: https://our.umbraco.org/projects/developer-tools/hybrid-framework-for-umbraco-v7/anything/60459-Umbraco-72-and-the-Grid-Layout if there are issues then I'll revert to the old way of doing it.
It's nice to try new things but sometimes getting there too early can be expensive ;)
Craig
is working on a reply...