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

Count Occurrences in a list

Discussion in 'Community' started by gcopping, Apr 7, 2020.

  1. gcopping

    gcopping Member

    Level: Community
    I want to count the number of occurrences in a list and have set in List View Settings/Calculations "Count Records" to "Yes" but it does not display anywhere. Can anyone help with this?

    Also I would like to display this count value in an article on my website - how would I do this, as I cannot see how I would do this in a Visualization?

    Thanks in advance.
     
  2. dimoss

    dimoss Well-Known Member

    Level: Community
    For the total records in a list you go to the List settings at:
    Details / Navigation and you select 'Show Total' -> YES
    It will be displayed in the bottom of the list

    To show the total records you should enable the content plugin fist and follow what the WiKi says.
    Otherwise you can do it using an external extension like Sourcerer.
     
  3. troester

    troester Well-Known Member Staff Member

    Level: Community
    This setting is for an element and you will see it only (at the end of the list in the element's column) if you display this element in list view.
     
  4. gcopping

    gcopping Member

    Level: Community
    Thanks for your replies.

    However when I go to List Settings/Details there is no Navigation option to go to, so where do I find "Show Total"?

    Also what Content plugin should I enable, as there are a number of Content plugins and some are enabled and others not enabled. Additionally I don't understand how the Wiki info on Content plugins would enable me to do what I wish.

    Any info greatly appreciated.
     
  5. dimoss

    dimoss Well-Known Member

    Level: Community
    What @troester described is on the element page to count per element and in order to see it on the list view you should have the element displayed in list view.
    However if you just need the number of records exist in the list, you have to make it from the List settings.
     
  6. gcopping

    gcopping Member

    Level: Community
    Thank you I now see how to display the count in the list view.
     

Share This Page