Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Thomas Beckert 193 posts 469 karma points
    Feb 12, 2016 @ 20:37
    Thomas Beckert
    0

    Version 7.4. Grid not render

    Hi,

    the grid seems not to render in Version 7.4.

    Is this a known issue or does anyone has a workarround for this?

    I updated from 7.2.8 to 7.4

    Existing Grids has been rendered, as soon as I republish the side, the grid is not rendered anymore in the frontend.

    Code for rendering is:

    if(Model.Content.HasVortoValue("Grid")){
            @Html.Partial("Grid/bootstrap3",Model.Content.GetVortoValue("Grid"))
        }
    
  • Andrey 2 posts 72 karma points
    Feb 18, 2016 @ 08:54
    Andrey
    0

    Good day

    I had the same problem This occurs because in controllers Grid is not enough fields

    Changes code in file bootstrap3 on :

    @foreach (var control in area.controls) {
                        if (control.editor.view == null){
                            if (control.editor.alias == "media_wide") {
                            control.editor.name = "Image wide";
                            control.editor.alias = "media_wide";
                            control.editor.view = "/App_Plugins/Grid/Editors/Views/media.html";
                            control.editor.render = "/App_Plugins/Grid/Editors/Render/media_wide.cshtml";
                            control.editor.icon = "icon-picture";
                            } else if (control.editor.alias == "embed"){
                            control.editor.name = "Embed";
                            control.editor.alias = "embed";
                            control.editor.view = "embed";
                            control.editor.render = "/App_Plugins/Grid/Editors/Render/embed_videowrapper.cshtml";
                            control.editor.icon = "icon-movie-alt";
                            }
                            else {
                                control.editor.view = control.editor.alias;
                            }
                        }
                        if (control !=null && control.editor != null && control.editor.view != null ) {
                            <text>@Html.Partial("grid/editors/base", (object)control)</text>
                        }
                    }
    

    This will allow you to display normal text blocks, images and videos.

    But I think it is possible to make more correctly.

  • Asa 11 posts 82 karma points notactivated
    Apr 04, 2016 @ 09:08
    Asa
    0

    Hi Andrey,

    Does this really solve it for Vorto rendering? I can't get it to work.

    Anyone else being able to solve this problem?

  • Andrey 2 posts 72 karma points
    Apr 04, 2016 @ 10:05
    Andrey
    0

    Look looks like control without vorto. And do exactly the same in it

  • Thomas Beckert 193 posts 469 karma points
    Apr 04, 2016 @ 09:12
    Thomas Beckert
    0

    What build do you have?

    For me, a nightly built did it. Try this one:

    https://ci.appveyor.com/project/mattbrailsford/umbraco-vorto/build/1.5.2.45/artifacts

  • Asa 11 posts 82 karma points notactivated
    Apr 04, 2016 @ 09:58
    Asa
    0

    Hi Thomas,

    How do I get it installed, I need to add it to an existing project where I have Vorto 1.5.1 installed. How can I upgrade it?

  • Thomas Beckert 193 posts 469 karma points
    Apr 04, 2016 @ 09:59
    Thomas Beckert
    0

    Just install it as local package. It will just overwrite the existing one.

  • Asa 11 posts 82 karma points notactivated
    Apr 05, 2016 @ 09:21
    Asa
    0

    Thanks, that worked fine to upgrade. but I still seem to have the same problem. I beginning to think I'm doing something wrong.

    I've made a clean installation of umbraco 7.2.8 and vorto 1.5.1 and I still get the same problem.

    • I have a grid wrapped with the vorto data type.
    • I call the property with: @Model.Content.GetVortoValue("vortoGrid")
    • I have the using for vorto extensions in place.

    all I get back is a json string. Am I missing a step or doing something else wrong?

Please Sign in or register to post replies

Write your reply to:

Draft