PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Help With a Directory Site - Long Shot

  1. OK so this is a long shot because I know that you don't have to help me with this but, I'm asking anyway.

    I want to build a directory site. I have tried plugins but they are too limiting so now I'm turning to GF. A bit of flattery to oil the wheels, I think that GF is a beauty.

    I want users to register and have editorial control of their entries and I don't want them to be able to go anywhere near anything else.

    It's like a business directory but this is focused on social care agencies and other groups. Oranisations that provide services for disabled/disadvantaged people.

    I have tried the GF directory plugin but its a bit buggy and is making me go round and round.

    I think the first step is to get people to register. After that, use a form to populate a post that sits outside of the blog. I then want them to be able to edit their listing with a form rather than the back-end.

    This is what I think I need to do:

    Create a custom post type for a Listing.
    Create a form that populates the custom post type
    Create a page with a loop that calls the custom post
    Work some magic with the whole membership/registration thing
    Stare at some code to will it into submission
    Make it so that I can charge people a small fee to list (I need to pay for the hosting and my GF Dev Licence!)

    Now, I know you are thinking that I don't know what I'm doing but hey, why else would I be asking?

    All I want is for someone to suggest a work-flow so that I can work through this stuff and get it going.

    Thanks

    Martin

    Posted 7 years ago on Friday February 15, 2013 | Permalink
  2. I believe this part is key :-) :

    Stare at some code to will it into submission

    I have heard reports recently of the Directory Add-on not working in every case, and in some cases creating problems with editing your forms, so I can understand your reluctance to use that.

    Registration is a good idea.

    Creating a post is a good idea. It can be a custom post type, if you want, or could just be in a specific category. You could exclude that category or that post type from your loop, so they don't end up on your blog page.

    You can create a loop which calls just one post type. It would look something like this for one custom post type (organisations):

    [php]
    <?php
    query_posts(array(
        // this will work for 1 custom post type
        'post_type' => array( 'organisations' ),
        'showposts' => -1 )
         );
    ?>
    <?php while ( have_posts() ) : the_post(); ?>
    // normal loop stuff here

    The magic will happen in the output of all your custom post data. That is all completely up to you on how it's displayed.

    That part is all pretty straightforward. You can set up pay to post if you want by using one of the payment add-ons, like PayPal. You can hold the post for publication until after payment is received.

    Posted 7 years ago on Monday February 18, 2013 | Permalink
  3. Thank You

    Posted 7 years ago on Monday February 18, 2013 | Permalink
  4. You're welcome. Let us know where you need help.

    Posted 7 years ago on Monday February 18, 2013 | Permalink
  5. So, I now have a Custom Post type and I'm using that 3rd party plugin to map the form to the post type. That was easy because I used a generator to build the CP-Type.

    Now if I view a submitted entry in either the dashboard or live it is not populated by anything other than a title and the body content. This is a trial entry: http://neighbourgood.co.uk/neighbourgoodlisting/martins-care/
    This is my form: http://neighbourgood.co.uk/directory/edit-add-listing-individual/

    Now, I am bright enough to know that I am doing something wrong but after that it all goes a bit hazy. I can't work out how to get all those extra bits of data into the page.

    If it is the case that I have to build a custom loop to to do this (I think that's what was suggested above) then I'll go away and do that but I don't want to start something that is taking me in the wrong direction. If this is the direction I need to go in then what I think I should do is build a template.php page with a modified loop in it to call my custom post type shizzle.

    If you could just confirm that, then I'll have a go.

    More flattery needed? Since getting GF, I want to build websites with forms in; forms, forms and more forms... I've been able to do a few things with custom logic that make feel like I'm a mean coder!

    Thanks

    Martin

    Posted 7 years ago on Wednesday February 20, 2013 | Permalink
  6. I've released an update to the Directory Add-on that fixes a bunch of issues. I'm sorry for the delay - please give the Directory Add-on another try!

    Posted 7 years ago on Friday February 22, 2013 | Permalink
  7. Thanks Zack.

    Posted 7 years ago on Saturday February 23, 2013 | Permalink

This topic has been resolved and has been closed to new replies.