ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Category for members?

February 21, 2011 10:38am

Subscribe [2]
  • #1 / Feb 21, 2011 10:38am

    JP Dela Torre

    2 posts

    Hi, I’m working on an EE 2.1.3 site that will use members directory.  Each member belongs to a location (state and country). On the directory page (example.com/directory), I need to be able to list all the state for a particular country and then display members list on a state list page (example.com/directory/california).

    What’s the best way to implement this?

    Thanks,
    JP

  • #2 / Feb 21, 2011 8:16pm

    Rick Jolly

    729 posts

    How are you getting the country and state data? You could set up a custom db table and maybe use a web service to get the country/state associations for populating the table. You can use custom member fields for the country and state. You might want to use the cp_js_end hook to add js validation to those custom fields. To display the country/state, you could use a simple plugin that queries your db table. The final step would be a fairly simple plugin with country and state parameters that will query the EE member tables for all members that belong.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases