We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38878
    • 255 Posts
    I see a way to reference a form when I create an event. Would like a registration form there but haven't seen any reference or docs. Has anyone tried something similar? Some pointers or docs would be awesome. [ed. note: charless last edited this post 13 years, 8 months ago.]
      • 34084 ☆ A M B ☆
      • 756 Posts
      Yes, documentation is an overarching issue, so much needs to be done by me to get them updated.

      In order to populate the Form list you will need to create a form chunk with a name that starts with "form_". In your case this could be something like "form_registration" then it will automatically be populated in the event manager list in the Form tab.

      Please let me know if you have any more issues or questions.

      Cheers
        Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
        Visit CharlesMx.com for latest news and status updates.
        • 3722
        • 171 Posts
        charless,

        How do you then place the form in the template?

        I have tried the following with no luck:
        [[+form]]
        [[+form_registration]]


        Thanks
        BG66
          • 34084 ☆ A M B ☆
          • 756 Posts
          Sorry BG66, again so much not in documentation. The placeholder is actually
          [[+form_chunk]]
          which will display the selected form. Also another undocumented placeholder will list all the valid placeholder names and is simply
          [[+allplaceholders]]


          Again apologies for the delay and lack of documentation.

          Cheers
            Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
            Visit CharlesMx.com for latest news and status updates.
            • 34084 ☆ A M B ☆
            • 756 Posts
            Friendly note, just added this to documentation on RTFM.

            mxCalendar Placeholders

            Cheers
              Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
              Visit CharlesMx.com for latest news and status updates.
              • 3722
              • 171 Posts
              Quote from: charless at Nov 13, 2012, 04:49 AM
              Sorry BG66, again so much not in documentation. The placeholder is actually
              [[+form_chunk]]
              which will display the selected form.

              Hmmm, I can't get it working. Here is the code at the end of the "tplDetail" chunk
              <p>[[+description]]</p>
              
              <p>[[+form_grocerystoretour]]</p>
              
              <h4>[[+location_name]]</h4>
              [[+map]]


              I have also tried,
              <p>[[+form_form_grocerystoretour]]</p>
              


              There is nothing showing in the output source of the page.
              Can you post a sample of your "tplDetail" chunk?

              Thanks
              BG66
                • 34084 ☆ A M B ☆
                • 756 Posts
                that's the placeholder name without changing smiley

                so regardless of your actual chunk name it always remains the same.

                [[+form_chunk]]


                Cheers
                  Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
                  Visit CharlesMx.com for latest news and status updates.
                  • 3722
                  • 171 Posts
                  OK, I see what you are saying.
                  [[+form_chunk]]

                  I tried this and it is only returning the name of the chunk as text.
                  None of the form field is shown.
                  I checked all of the settings in the chunk and form and don't see what's wrong.

                  BG66
                    • 37984
                    • 215 Posts
                    Bobby - you can allow for the form to appear by using Charles' placeholder along with traditional chunk brackets. Use this as a placeholder and it will render fine:

                    [[$[[+form_chunk]]]]
                      Jesse Couch
                      MODX Aficionado, Front-End Designer & Developer
                      http://www.designcouch.com
                      • 3722
                      • 171 Posts
                      Thanks designcouch,

                      That got it working!!!
                      BG66