We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2901
    • 277 Posts
    Hi all

    I have kind of a strange situation. I need a navigation that shows several links, but some of them need to be inactive until a certain date (Milestones). I plan to dim them with CSS. Has anyone a good idea how to solve this best in within wayfinder?

    The idea is that the certain Documents will be published later but the kink should already be visible. I really would love to do this in way finder, rather than building a static Navigation.

    this is meant to be in evolution 1.0.5
      • 22427
      • 793 Posts
      Is the Milestone date stored in a TV?
      Then you could use an explicit &rowTpl wherein you decide by a phx statement in which way to display the item, dependent on the value of that TV.
        • 2901
        • 277 Posts
        Hi ottogal

        no it's not at that time, but I could do this. however I don't yet really see how you would go about this?
          • 22427
          • 793 Posts
          Sorry, I don't find the time to get into this. But meanwhile I think that writing a snippet is the better choice over using phx. The Wayfinder should have the snippet call in its &rowTpl parameter, like
          &rowTpl=`[[!GetRow]]`
          and the snippet GetRow should return the normal row template chunk or a "dimmed" version, dependent on the value of a TV (which indicates if the item has to be dimmed or not).