We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9179
    • 21 Posts
    Hi Guys,

    Im in the middle of putting together a business directory type site, and was wondering if modx would be suitable.

    It wouldnt be an overly huge site, but with the following.

    Memebers Login (too edit their listings)
    Search Facility (search by biz name or category)

    Section with the categories listed.

    What would be the best snippets / chunks for this type of site.

    Thanks for your help in advance

    Euphoria
      • 16183
      • 1,390 Posts
      Quote from: Euphoria at Jan 12, 2009, 12:28 AM

      Hi Guys,

      Im in the middle of putting together a business directory type site, and was wondering if modx would be suitable.

      It wouldnt be an overly huge site, but with the following.


      I’m not an expert and am not saying these are the best tools you need....so wait for other responses too! wink

      Memebers Login (too edit their listings)
      WebloginPE

      Search Facility (search by biz name or category)
      Ajax search

      Section with the categories listed.
      Ditto


      cheers/k
        • 9179
        • 21 Posts
        Hi Kongondo

        Thanks for the tips.

        Cheers
        Euphoria
          • 9179
          • 21 Posts
          Hi,

          I have the categories displaying in a content box fine and you click say for example "Art" and this will take you to the art page.

          Now my next task, when you click on "art" to display the art page i want to have 10 listings per page of all art businesses which i got working with ditto.

          But my problem is i would like to have each listing set out for example

          Business Name:
          Sm Description
          Telephone - Web Address - Email Address


          (when a viewer clicks on business name it will take them to another page with the full info on the business)

          What would be the easiest way to add in each listing etc, just going around in circles here and fairly new to modx. Maybe a form in a document to add each listing?? via the manager (just guessing and wouldnt have a clue how to do that)

          Thanks in advance

          Euphoria
            • 3707
            • 241 Posts
            There are several ways of creating a business directory but this is the way I did it.

            Create a new document in the manager to use as a container to hold all your business documents. Let’s call it "Directory". All your business documents (Business1, Business2, Business3 etc.) will be created as children of the "Directory" document so you end up with a tree structure like:

            -Directory
            -Business1
            -Business2
            -Business3
            -etc.

            For each of the business documents, you can use a mixture of existing document settings and Template Variables (TVs) to hold all the business data. For example:

            Business name = Title
            Description = Document content
            Telephone = TV
            Web site = TV
            Email address = TV

            See the documentation or wiki for information on creating TVs.

            To create the business categories, you need to create another TV, let’s call it "categories". If you have a fixed pre-defined list of categories you could use the "Check Box" input type for the TV and add the list of categories into the input option values field like:

            Accounting||Automotive||Creative/Design||Engineering||Legal||Medical/Health||Retail||Tourism/travel

            If your categories list needs to be more flexible, you can use the "Text" input type and allow any value to be entered for the category.

            You could then use a combination of Ditto and/or TvTagCloud to display the listings. I used TvTagCloud to display a list of categories. Clicking on a category takes you to a Ditto call that lists all the documents "tagged" with that category. Clicking on the business name takes you to that document page with all the business data displayed.

            BTW. For the business search facility, I used TVExplorer to create a custom search form and use this as the primary way for users to find business profiles rather than the category lists.
              • 16183
              • 1,390 Posts
              Nice one bob1000 smiley

              Clicking on a category takes you to a Ditto call that lists all the documents "tagged" with that category.

              I suspect the next question Euphoria might ask is how to create a link (so that it can be clicked) to the Ditto call? It would be nice to explain for the benefit of others too.

              Thanks

              cheers/k
                • 9179
                • 21 Posts
                Hey Guys,

                Got it all working thanks (feels dumb) lol

                  • 16183
                  • 1,390 Posts
                  Quote from: Euphoria at Jan 21, 2009, 09:24 AM

                  Hey Guys,

                  Got it all working thanks (feels dumb) lol

                  Brilliant! Glad you got it working... grin

                  /k
                    • 9179
                    • 21 Posts
                    Hi,

                    i was wondering is there away to display the Keywords you have selected for a page in the Document content?

                    For example ive setup meta keywords for a particular page ie (keyword 1, keyword 2 etc) and was needing them to be displayed on the page content.

                    Thanks
                    Euphoria