• show not Published links, but keep the inactive#

  • bbeer Reply #1, 3 months, 4 weeks ago

    Reply
    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


  • ottogal Reply #2, 3 months, 2 weeks ago

    Reply
    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.


  • bbeer Reply #3, 3 months, 2 weeks ago

    Reply
    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?


  • ottogal Reply #4, 3 months, 2 weeks ago

    Reply
    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).