Copied to clipboard

Flag this post as spam?

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


  • Douglas Gandini 2 posts 52 karma points
    Dec 14, 2015 @ 14:59
    Douglas Gandini
    0

    Quering Grid Layout Setting for a Verical Scroll Menu

    I'm using Umbraco 7.3.3 to create a home page with a verical parallax scroll menu. My approach is to create a Editor/View for each specific section and use a setting (from Grid Layout property editor) to render the ID that I'll use as anchor for my main navigation.

    I've also tried to create the sections as Child Documents but it's lacks the ability to freely reorder the sections.

    Is the first option the best approach to create a Grid Layout with Parallax Scroll navigation? Can someone point a different/better way to create a "scroll down" navigation menu?

    The backbone is OK but I don't know how to query CurrentPage's settings under MainNavigation.cshtml Partial (I'm using Fanoe Starter Kit).

    How can I query by a specific CurrentPage's setting?

    I'm expecting something like:

    // first try (Does NOT work)
    CurrentPage.GetProperty("content").Where(s => s.some lambda expression)
    
    //another tried option based on GetGridHtml method (Does NOT work)
    CurrentPage.GetGrid("content")...
    

    Here is the setting configuration for each row that should have a navigation item in menu:

      [{
        "label": "Section Name",
        "description": "Type the section name",
        "key": "id",
        "view": "textstring",
        "applyTo": "row"
      }]
    
  • Douglas Gandini 2 posts 52 karma points
    Dec 15, 2015 @ 01:37
    Douglas Gandini
    100

    I've made an extra research and I found (here and here) that there is no API that handles the serialized JSON stored by the Grid Layout Editor.

Please Sign in or register to post replies

Write your reply to:

Draft