Copied to clipboard

Flag this post as spam?

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


  • Jakob Ladingkær 3 posts 72 karma points
    Jun 25, 2019 @ 08:13
    Jakob Ladingkær
    0

    Grid Fallback.ToLanguage in Umbraco 8

    Hi,

    Is it possible to specify a fallback on the grid render like:

    @Model.Value("pageTitle", "fr", fallback: Fallback.ToLanguage)

    But for the @Html.GetGridHtml(Model, "grid1")

    / Jakob

  • Thomas Kaagaard 1 post 21 karma points
    1 week ago
    Thomas Kaagaard
    0

    Hi Jakob

    Just change from

    Model.PageContent.GetHtml(Html)
    

    to

    (Model.Value<GridDataModel>("gridalias", "culturecode").GetHtml(Html))
    
  • Jakob Ladingkær 3 posts 72 karma points
    1 week ago
    Jakob Ladingkær
    0

    Hi Thomas,

    As I read it, your solution uses Skybryd.Umbraco.GridData-extension, but installing it to my project causes an error:

    Boot failed: Umbraco cannot run.

    Can't see if Skybryd.Umbraco.GridData is compatible with Umbraco v8.2.0

Please Sign in or register to post replies

Write your reply to:

Draft