Conditionally display items on the wiki

Follow

Comments

2 comments

  • Avatar
    Jay Mitchell

    Mingle doesn't have that functionality. I've added a story to our backlog.


    It might be possible to create a custom macro that does this. If somebody creates this macro, keep in mind that custom macros cannot generate built-in macros. E.g., the table query macro shown above. One approach to get around this for the macro is to let the page display and then hide certain sections. This macro might look something like:


    h3(#id-for-optional-section). Story cards

    {{
      table
        query: SELECT name WHERE type=Story
    }}

    {{
      conditionally-display
        id: id-for-optional-section
        if-any-cards-are: type=Story
    }}

    Here, the conditionally-display macro would hide the h3 with the id of id-for-optional-section if any cards are returned for the condition, "type=Story." There may be other ways to form these conditions "if-any-cards-are" is just an example.


    Thanks,


    Jay

  • Avatar
    Suzie Prince
    Patrick
    I'm curious as to why you want this. Can you enlighten me?
    Thanks
    - Suzie

Please sign in to leave a comment.