Church Directory

A church has hired me to do a site and wants to do a membership directory (visible only a members only page). I initially thought I would try to build it using a database/dataset/repeaters, but have run into a few unknowns and challenges.

The directory will be hundreds of database entries.

  1. Is there a way to make this searchable? (To find a specific person)
  2. Is there a way to have A B C D…at the top so the enduser can jump directly to the D’s?

Each directory entry is per family. So you may have a single person, or a family with a bunch of kids which would all be listed.

Also, if you have any suggestions on how to build this, I would really appreciate it. Or…if it’s not really doable, then let me know that as well.

Even as I write this I’m sure there’s probably 50 things I’m not even thinking about.

Hi.
You’d probably need to write some code to implement these but it’s possible.

  1. Having a TextInput and quering the collection using WixData API would work here. You could then dynamically render your filtered content. There’s also a video tutorial for this.
  2. This sounds similar to 1., just different user interface as clicking a letter would basically do the same as entering that letter into your search TextInput (and then rerendering the content)

Hi Shannon :slight_smile:

‘Hundreds of database entries’ is Wix Code’s specialty :wink:

Check out a few how-to videos I have on my YouTube channel that can help you get started on your search function …

Hi Shannons, how did you get on with this? Did it work? I am trying to find a way to link my members sign-up to creating a listing on the directory automatically. Desperate to find a solution as I am having to do it manually at the moment.
Any help is much appreciated! Thanks!

Hi Nayeli :slight_smile:
Any advice on automating members sign-up to creating a listing on the directory automatically? For example, someone becomes a member and it instantly populates into the directory?
Desperate to find a solution as I am having to do it manually at the moment. Any help is much appreciated! Thanks!

If you want to have a dataset that new site members are automatically added to, then have a look at the Wix Members Profile tutorial here.
https://support.wix.com/en/article/corvid-tutorial-building-your-own-members-area

You can still use the Wix Members app on your site if you want too, just note be aware that the two dynamic pages from the tutorial above are restricted to the specific site member only, however they are not added to the Wix Members app, they must be made up as seperate pages to it.

However, if you setup your signup to be automatically approved, then once users have signed themselves up to be site members through your own corvid signup lightbox or the Wix default/custom signup windows, then the users details will be added to the dataset from the above tutorial as well.

Note that it will only add into the dataset from thius tutorial what you have captured on your signup form for your users to use, obviously the more you add then the more you can have already added to the dataset from this tutorial above.

Use Nayeli (Code Queen) website and YouTube videos as they are a great way for you to learn how to do things with Wix Corvid, plus below is a basic signup code that you can use that is on her tutorial too.

import wixUsers from 'wix-users';
import wixWindow from 'wix-window';
import wixLocation from 'wix-location';

$w.onReady(function () {
    
    $w("#registerButton").onClick( (event) => {
        
   let email = $w("#email").value;
   let password = $w("#password").value;
   let first = $w("#firstName").value;
   let last = $w("#lastName").value;

   wixUsers.register(email, password, {
       contactInfo: {
        "firstName": $w('#firstName').value,
        "lastName": $w('#lastName').value,
       }
      } )
      .then( (result) => {
        let resultStatus = result.status;
  wixWindow.lightbox.close();
  wixLocation.to("/sign-in-status");  //Change the URL ending to whatever page you want to send the user to after they log in.
      } );     
    } );
    
});

This works perfectly and closes after registering details before moving user onto another page, then both names will be saved in your Contacts list via the Wix CRM and once site member is approved the member details will be added to ‘members’ database from the tutorial mentioned above.

Also, note that this post is originally from 2018 and you are much better adding a new post rather than bumping up an old post and referring back to this old post in a link, otherwise the post could be closed.

Thank you so much, will crack on.
And yeah, thought of opening new post but always hesitate in case there’s already a post about it that I missed… people get really upset when that happens!

Thanks again GOS!