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

    Ok, i switched to your code above... but i still get the white-page.
    And there’s only one FDM call in the template.

    Can you give me a clue?

    See’ya
    Rohal
      • 36624
      • 535 Posts
      Quote from: Rohal at Mar 24, 2009, 01:07 PM

      Can you give me a clue?
      well, can you post all your snippets/chunks/tvs you use here ? or pm me an access to your site.. ?
        CTRL+SHIFT+U - Clear Cache
        CTRL+SHIFT+H - Hiding Heft Panel
        CTRL+SHIFT+N - Fast Create Resource
        CTRL+ALT+P - Preview Recource (in edit resorce window)
        CTRL+ALT+S - Save
        • 29525
        • 388 Posts
        Manu

        Thankyou for your help. I’m on my way. Not saying I’m done yet. . . wink May be back for more questions.

        Thanks again.

        Terry
          www.terrybarthdesign.com
          • 16903
          • 39 Posts
          @manu

          Here we go:

          I use the FDM-Snippet with the following chunk for editing:
          [+validationmessage+]
          <form method="post" action="/[~[*id*]~]"  id="fdmForm">
          <fieldset>
          	<legend>Neues Angebot</legend>
          	<input type="hidden" name="formid" value="fdmForm" />
          	<p><label for="pagetitle">Titel</label><input name="pagetitle" id ="pagetitle" value="[+pagetitle+]" type="text" eform="Product's name:string:1" /></p>
                  <p><label for="tvstreet">Strasse</label><input name="tvstreet" id ="tvstreet" value="[+tvstreet+]" type="text"  /></p>
                  <p><label for="tvzip">PLZ</label><input name="tvzip" id ="tvzip" value="[+tvzip+]" type="text"  /></p>
                  <p><label for="tvcity">Stadt</label><input name="tvcity" id ="tvcity" value="[+tvcity+]" type="text"  /></p>
          	<p><label for="longtitle">Langer Titel</label><input name="longtitle" id ="longtitle" value="[+longtitle+]" type="text"  /></p>
          	<p><label for="tvdescription">Beschreibung</label><br /><textarea name="tvdescription" id="tvdescription" rows="5" cols="50"  eform="Description:html:1">[+tvdescription+]</textarea></p>
                  <p><label for="content">Inhalt</label><br /><textarea name="content" id="content" rows="5" cols="50"  eform="Inhalt:html:1">[+content+]</textarea></p>
                  <p><label for="types">Urlaubsthemen</label><br /></p>
                  <p>[[GetInputByTv? &idname=`types` &docid=`[+id+]`]]</p>
          </fieldset>
          	<p>
          	<input name="fdmsubmit" value="Absenden" type="submit" />  
          	</p>
          </form>
          


          The call in my template looks like this:
          [!FDM? &canpost=`webuser` &canedit=`webuser` &disableedit=`0` &disabledelete=`0` &disableunpublish=`0` &disablepublish=`0` &eform_tpl=`tpl_addOffer` &aliastype=`%pagetitle%`!]


          Without the "GetInputByTv" call everything works fine. When i put it in the chunk, i get a white empty page.

          The TV "types" has the following params:
          Type: Checkbox
          Input value: @CHUNK types
          Object: HTML Generic Tag
          Tag name: li
          
            • 36624
            • 535 Posts
            your snippet call looks, and you are using it only one time in your chunk so you need to use the original bruno’s snippet.

            and have you try to use a simple checkbox tv (with no @binding) ?
              CTRL+SHIFT+U - Clear Cache
              CTRL+SHIFT+H - Hiding Heft Panel
              CTRL+SHIFT+N - Fast Create Resource
              CTRL+ALT+P - Preview Recource (in edit resorce window)
              CTRL+ALT+S - Save
              • 16903
              • 39 Posts
              OK, i switched to the original Snippet found here:
              http://www.modxcms.de/forum/comments.php?DiscussionID=1001

              I also removed the @binding and added Input-Options:
              Aktiv==Aktiv||All-Inclusive==All-Inclusive


              But i still get the white, empty page... :-(
                • 29525
                • 388 Posts

                Is it possible to add a date picker to an FDM document? How?
                  www.terrybarthdesign.com
                  • 29525
                  • 388 Posts

                  I’m also trying to incorporate FileUpload into the FDM form so a user can upload a file to the assets/folder.

                  However, if I add the FileUpload snippet to the formtpl, the call is just displayed on the page. I’ve used the FileUpload elsewhere on the site, works great, so I assume there’s something else going on.

                  Appreciate the help!
                    www.terrybarthdesign.com
                    • 36624
                    • 535 Posts
                    Quote from: Terry at Mar 26, 2009, 04:10 PM


                    However, if I add the FileUpload snippet to the formtpl, the call is just displayed on the page. I’ve used the FileUpload elsewhere on the site, works great, so I assume there’s something else going on.


                    this should be easy... try to play with [[...]] or [!...!]
                      CTRL+SHIFT+U - Clear Cache
                      CTRL+SHIFT+H - Hiding Heft Panel
                      CTRL+SHIFT+N - Fast Create Resource
                      CTRL+ALT+P - Preview Recource (in edit resorce window)
                      CTRL+ALT+S - Save
                      • 29525
                      • 388 Posts
                      Manu

                      First thing I tried. laugh

                      However, then nothing was displayed at all.
                        www.terrybarthdesign.com