1. Fabrik 3.9 has been released. If you have updated Joomla to 3.9, this is a required update.
    Dismiss Notice

conditional content plugin

Discussion in 'Community' started by FilMar, Nov 12, 2019.

  1. FilMar

    FilMar Member

    Level: Community
    I have a detail form with 3 lists in the footer (content plugin)
    Depending the category (field) not all the lists have data so they don't need to be shown.

    What is the best way to show/hide the list?


  2. lousyfool

    lousyfool Active Member

    Level: Community
  3. FilMar

    FilMar Member

    Level: Community

    thanks for the hint.
    I did put them in a different group so I could even do it with the predefined actions.

    Many thanks for the help.


  4. troester

    troester Well-Known Member Staff Member

    Level: Community
    Hiding with JS will render (and then hide) all lists.
    You can use a php form plugin, process getEndContent (this will output after the form footer, ie, no problem with nested <form tags). You can use element placeholders for conditional
    return '{fabrik ....}';
    Last edited: Nov 12, 2019
  5. FilMar

    FilMar Member

    Level: Community
    @troester: thanks for the info and I understand the difference.
    But here I have 2 empty lists so I think that it doesn't take so long to render so I take the easy way ;-)

Share This Page