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

    I've got a Modx site on which I need to make a web-form that will let people ask a question of a doctor.
    And I need another page where this doctor will be able to log in (or maybe log into the manager) and see the list of questions and answer them. After the doctor answers the question this question and the answer appear on a page with all questions and answer?

    Can anyone help me how can I implement it? What extenstions to use.

    Thank you.
      • 3109 ☆ A M B ☆
      • 894 Posts
      You could probably use Quip for this or if you want something more robust Discuss but that might be overkill IMHO.
        Benjamin Marte
        Interactive Media Developer
        Follow Me on Twitter | Visit my site | Learn MODX
        • 39535
        • 39 Posts
        Thank you, benmarte, for reply. But I think I need something different. I need make people ask and wait until doctor replies on that quastion and only after that show them on the site.

        I thought of using FormIt but as I see I'll have to write a lot of code on my own, so I want to avoid it.
          • 39535
          • 39 Posts
          I mean, I need a conjunction of question and reply. It must be one whole thing. I dont' know how to implement it on comment system with Quip
            • 39535
            • 39 Posts
            Well I see that to let doctor answer the questions I have to edit Quip Component.
            Well, I don't think I can do it without any assistance)

            So, please for any help)

            As I see everything else can be easily done:
            I can set moderate property to Quip snippet.
            So when the doctor answers the question in Quip component (somehow, I don't know how yet),
            he then approves this comment and it appears on site.
              • 3109 ☆ A M B ☆
              • 894 Posts
              Well if FormIt is intimidating you I suggest you take a look at my FormIt Tutorial it might help you out.
                Benjamin Marte
                Interactive Media Developer
                Follow Me on Twitter | Visit my site | Learn MODX
                • 39535
                • 39 Posts
                Well, as I see this tutorial is coppied from official modx tuturial http://rtfm.modx.com/display/ADDON/FormIt.Tutorials+and+Examples

                But here is more problems than with Quip.
                With FormIt I have to write snippet that adds questions to database (that's not so hard) and than make a somehow manager for that questions to let doctor moderate them. That's a lot of code to write (I think)

                I think with Quip it's more easy to do that. And I also like the idea of moderating this comments with Quip component in Modx manager. The only thing is to edit Quip component (and quip tables in database) to let doctor answer the questions.

                So the open question is how and where to edit the code of Quip component.

                I'll be trying to read modx docs to figure out.

                But still need any help
                  • 4172
                  • 5,888 Posts
                  shouldn't be very difficult to use formit and a hook like formit2db.

                  To manage the questions,create the answers and publish them you can create a CMP with help of MIGXdb.

                  With help of MIGX you can also create the needed db-schema for your table, the table itself and all that xpdo-stuff.
                  Listing the question/answer - pairs should be easy done with migxLoopCollection (included in MIGX)

                  some nice Tutorials how to Create CMPs with help of MIGXdb:

                  http://www.bdcreative-design.com/blog/creating-a-cmp-in-modx-using-migxdb/
                  http://rtfm.modx.com/display/ADDON/MIGXdb.Create+doodles+manager+with+help+of+MIGXdb

                    -------------------------------

                    you can buy me a beer, if you like MIGX

                    http://webcmsolutions.de/migx.html

                    Thanks!
                    • 39535
                    • 39 Posts
                    Thank you Bruno17,

                    That could be done and I thought of kind of this solution when I started with FormIt,
                    but I still can't see any good way to administrate this questions for doctor. That he could
                    edit all his responses, answer new question, see new questions, delete questions
                      • 4172
                      • 5,888 Posts
                      I would do one of the above tutorials and you will see a bit clearer.
                      Its possible to sort by latest questions, filter ununswered questions, answer questions, delete questions by a CMP like that.
                      If you have any further questions about that, let us know.
                        -------------------------------

                        you can buy me a beer, if you like MIGX

                        http://webcmsolutions.de/migx.html

                        Thanks!