• Hello everyone,

    I created a list of activities that participants can choose from. “activity1, activity2, activity3, activity4…”

    Participants use check boxes to choose the activities they wish to participate in.

    I created a list per participant:
    NAME ——————- ACTIVITIES
    participant1: activity1, activity 4, activity 7
    participant2: activity 2, activity 4, activity 8
    participant3: activity1, activity9
    participant4: activity7, activity9, activity2

    I would like to know if it is possible to have another list of participants but grouped by activity.

    I would like the list to display like this:
    List by activities:
    ACTIVITIES ———- NAME
    activity 4: participant1, participant2

    ACTIVITIES ———- NAME
    activity 9: participant3, participant4

    ACTIVITIES ———- NAME
    activity 2: participant2, participant4

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author xnau webdesign

    (@xnau)

    A simple way to do this is to use multiple [pdb_list] shortcodes, using the filter attribute to determine which activity is shown. For example:

    ACTIVITY 1
    [pdb_list filter=”activity=activity1″]
    ACTIVITY 2
    [pdb_list filter=”activity=activity2″]

    And so forth. You can use the “fields” attribute to determine which fields are shown, for example, the participants names.

    You’re probably going to have to put in some work getting it to format the way you want. Try using the “responsive” template for the list shortcodes, then add your own custom CSS rules to get it formatted the way you want.

    If you’ve got php and html skills and want more control over the whole thing, another approach is to use a custom template for the list shortcode.

    Thread Starter helnet

    (@helnet)

    Hello xnau,

    I will work on this suggestion.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to have a list of activities per participant’ is closed to new replies.