It throwing an error in view:
'string' does not contain a definition for 'sections'
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'string' does not contain a definition for 'sections'
Source Error:
Line 7: *@
Line 8:
Line 9: @if (Model != null && Model.sections != null)
Line 10: {
Line 11: var oneColumn = ((System.Collections.ICollection)Model.sections).Count == 1;
Source File: c:\Repository\Clients\Current\CSTemplate\www\CSTemplate\Views\Partials\Grid\Bootstrap2.cshtml Line: 9
Stack Trace:
Are there any solution please for this or how I can sort it out?
No, no - didn't mean to scare monger ;-) I was genuinely curious.
I haven't tried the Grid in the beta yet (I last tried it a few weeks ago) ... but it struck me that the Grid was intended to be a "full width" property-editor, whereas using it with Vorto would make it nested. Guess I'm more curious about the UI/UX of it.
Hi. Also we can use Vorto like property editor in LeBlender component with two simple changes to the source files. Unfortunately those packages do not work together from the box.
Changes into LeBlender ~\App_Plugins\LeBlender\editors\leblendereditor\dialogs\parameterconfig.controller.js
Changes into Vorto
~\App_Plugins\Vorto\js\vorto.js
That’s all )
Now you can use Vorto like property editor in LeBlender component
Vorto and the new grid?
Has anyone tried using Vorto with the new grid?
If its possible - how do you use GetGridHtml()?
It works :)
But a little workaround was needed.
In stead of CurrentPage.GetGridHtml("grid") you have to write Html.Partial("Grid/bootstrap3",Model.Content.GetVortoValue("grid"))
Hi guys,
I am trying to render the grid which is wrapped in Vorto:
but it is not working/rendering.
Are there any solution please for this or how I can sort it out?
Thanks in advance.
Hi Guys,
The above suggestion was not working for me.
Actually the solution for it was the following:
Actually, we had to deserialize the json value as string to the GridDataModel.
then calling it @Html.Partial(MVC.Partials.Views.Grid.Bootstrap2, GridDataModel.Deserialize(Model.Content.GetVortoValue("pagecontent"));
Hope it helps someone
Hi Søren, genuine question - did you have a need for using the new Grid within a Vorto? or was it an experiment?
Thanks,
- Lee
I needed to use the grid in a Vorto. Anything I should be worried/aware about?
No, no - didn't mean to scare monger ;-) I was genuinely curious.
I haven't tried the Grid in the beta yet (I last tried it a few weeks ago) ... but it struck me that the Grid was intended to be a "full width" property-editor, whereas using it with Vorto would make it nested. Guess I'm more curious about the UI/UX of it.
Cool that it works thought! Good stuff.
Cheers,
- Lee
I am using the grid to populate the content part of a layout similar to this.
If you clone the git repository, you get an option to hide the label of the Vorto field, so you still have a full width property editor.
Then you have to handle the possibility of not having all language versions filled. I did this in my template:
That way, it reverts to danish (if a danish version exists)
Hello Søren / Lee,
I am trying to make this work LeBlender in Vorto. I tried all above suggestions but no luck.
I added Skybrud.Umbraco.GridData as well.
I am posting my snippet here for some input and suggestions.
my controller
My razor View
Not YSOD but I get this error
'Lecoati.LeBlender.Extension.Models.LeBlenderModel' does not contain a definition for 'guid'
Any help much appriciated! Thank you in advance.
Ranjit J. Vaity
Hello Community,
My issue resolved. It not much of a big change but I had to bring all code from Controller to view. Following is the snippet.
Thank you!
Ranjit J. Vaity
Hi. Also we can use Vorto like property editor in LeBlender component with two simple changes to the source files. Unfortunately those packages do not work together from the box.
Changes into LeBlender ~\App_Plugins\LeBlender\editors\leblendereditor\dialogs\parameterconfig.controller.js
Changes into Vorto
~\App_Plugins\Vorto\js\vorto.js
That’s all )
Now you can use Vorto like property editor in LeBlender component
is working on a reply...