We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23050
    • 1,842 Posts
    When an error occurs into the form, page is reloaded but the &script doesn’t have any effect : the files are not added to the head section.
      • 36416
      • 589 Posts
      Quote from: Perrine at Dec 02, 2007, 06:55 AM

      I changed &aliastype to %D% ... but, in my form, I don’t ask user to choose a date... so publish date is null and I get this error when validating :

      Edit : Doesn’t work, even with &aliasdate=`createdon` (didn’t see this parameter before)

      Guess someone forget to actually fill date value from field name, somewhere around:
        } else {
          $rest = substr($word, 0, strlen($word)-1);
          $val = strftime($rest, $datefield);
          $newalias = str_replace($word, $val, $newalias);
        }
      


      So, best to do it yourself by getting timestamp from $datefield before calling strftime()
        • 18174
        • 116 Posts
        Hello to all

        Did anybody solve the @CODE issue http://modxcms.com/forums/index.php/topic,14977.msg118295.html#msg118295 ?

        I tried to use FDM toghether with JOT or DITTO on the same page with this effect ("@CODE" appears just before the buttons).
        When I use
        [!FDM!] just ahead of
        [!JOT...!]
        FDM works but JOT does’nt show up at all.

        Any clues?
        THX manu
          • 27889
          • 415 Posts
          There are problems with jot because the double use of chunkie class, I’m working on. Is there any with Ditto ??
            MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
            MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
            • 7231
            • 4,205 Posts
            When an error occurs into the form, page is reloaded but the &script doesn’t have any effect : the files are not added to the head section.
            I confirm this action.

            Is there a way to have new documents created with the same document access as the model? Currently only the content seems to be transfered but none of the settings seem to go so when adding a private page you need to go into the manager to make it private.
              [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

              Something is happening here, but you don't know what it is.
              Do you, Mr. Jones? - [bob dylan]
              • 27889
              • 415 Posts
              dev_cw This is not supported yet, but will be available in the future version with XPDO. I develop this version for 0.9.6 with the core system of the future 0.9.7, it will work on both and should manage external table too.
              There is lot of work to do so be patient.
                MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
                MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
                • 7231
                • 4,205 Posts
                There is lot of work to do so be patient.
                I am patient and thankful for your efforts. This is a handy snippet. grin grin
                  [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

                  Something is happening here, but you don't know what it is.
                  Do you, Mr. Jones? - [bob dylan]
                  • 3743
                  • 42 Posts
                  Any ideas how to display edit form instead of buttons without passing get params to page like ?fdmaction=edit&fdmid=3?

                  An ideal solution would be a snippet parameter like &action.

                  Help please!
                    • 27889
                    • 415 Posts
                    I must use it to pass parameter between the different pages, and it allow text link to perform somes actions and placeholder to the redirect page.
                    Snippet parameters ? from where ?
                      MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
                      MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
                      • 36416
                      • 589 Posts
                      Quote from: Soda at Dec 20, 2007, 01:57 AM

                      I must use it to pass parameter between the different pages, and it allow text link to perform somes actions and placeholder to the redirect page.

                      "Get" is good, but why not preserve existing parameters (Ditto pagination etc.)? Jot handles this nicely...