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
hi everyone,
i'm using vorto package with umbraco but i did not find a way to show the vorto grid data.
can you give me a way to show the vorto grid data?
thanks.
Hi
Are you using vorto in the grid or grin in the vorto?
Can you show that you tried?
Alex
hi Alex,
i'v tried this :
@CurrentPage.GetGridHtml("projectGrid")
and this
@Html.Partial("Grid/bootstrap3", Model.Content.GetVortoValue("projectGrid"))
and i'm geting this error :
'Umbraco.Web.Models.RenderModel<Umbraco.Web.PublishedContentModels.HomePage1>' does not contain a definition for 'sections'
in "\Views\Partials\Grid\Bootstrap3.cshtm"
at this code line
@if (Model != null && Model.sections != null)
any Suggestions ??
Model.sections - will no work, all property names should be capitalized, so try:
Model.Sections
Or:
Model.HasValue("sections")
Check, please, alias of property you want o to render.
Thanks,
Hi Alex,
thanks for replying,
it's not working.
PS :that error only shows after changing the editor to Vorto grid and it's from Partials\Grid\Bootstrap3.cshtm
Partials\Grid\Bootstrap3.cshtm
The capital s is not the problem. The grid cshtml works with small characters.
@inherits UmbracoViewPage<dynamic> @using Umbraco.Web.Templates @using Newtonsoft.Json.Linq @if (Model != null && Model.sections != null) { var oneColumn = ((System.Collections.ICollection)Model.sections).Count == 1; <div class="umb-grid"> @if (oneColumn) { foreach (var section in Model.sections) { <div class="grid-section">
etc.
Does the language you are currently using have a value?
thank you soooooo much,
I feel like a fool.
No problem. Happens all the time.
You can check if the value exists by using .HasVortoValue("valuename") If no value for this language is present you could always default back to another language, show a message or redirect to somewhere
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
show vorto grid data
hi everyone,
i'm using vorto package with umbraco but i did not find a way to show the vorto grid data.
can you give me a way to show the vorto grid data?
thanks.
Hi
Are you using vorto in the grid or grin in the vorto?
Can you show that you tried?
Alex
hi Alex,
i'v tried this :
and this
and i'm geting this error :
in "\Views\Partials\Grid\Bootstrap3.cshtm"
at this code line
any Suggestions ??
Hi
Model.sections - will no work, all property names should be capitalized, so try:
Or:
Check, please, alias of property you want o to render.
Thanks,
Alex
Hi Alex,
thanks for replying,
it's not working.
PS :that error only shows after changing the editor to Vorto grid and it's from
Partials\Grid\Bootstrap3.cshtm
The capital s is not the problem. The grid cshtml works with small characters.
etc.
Does the language you are currently using have a value?
thank you soooooo much,
I feel like a fool.
No problem. Happens all the time.
You can check if the value exists by using .HasVortoValue("valuename") If no value for this language is present you could always default back to another language, show a message or redirect to somewhere
is working on a reply...