We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22095
    • 30 Posts
    Ok, it seems that that makes it work reasonably well... Close to one detail I get 3 extra instances of the new document after filling in the info, probably due to the fact that the edit page look like:
    [!FDM? &model=`85` &canmoderate=`Blog Admins` &parent=`[[getUsersFolder]]`  &disabledelete=`1` &disableunpublish=`1` &disablepublish=`1` &eform_tpl=`fdmEformBlog`!]</p>
    
    [!Ditto?  &parents=`4` &total=`5` &debug=`0` &tpl=`blogpost.v2` !]


    and the blogpost.v2 looks like:
    <div class="blogpost">
            <h3><a href="[~[+id+]~]">[+longtitle+]</a> [[FDM? &id=`[+id+]` &canmoderate=`Blog Admins` &eform_tpl=`fdmEformBlog` ]]
    </h3>
            [+blogContent+]
            <p><a href="index.php?id=7">Read more...</a></p>
            <div style="text-align:right;">by <strong>[+author+]</strong> [+date+]</div>
    </div>


    One other thing, after saving a new page, I get redirected to mydomain/.html.

    Thanks for the help, this snippet will probably be one of the most used features on the site I’m building.  laugh

    Edit: Oh I forgot, I just updated to 0.0.53 before writing this post, it seems to have removed some bugs.
      • 27889
      • 415 Posts
      There is some problem with the created alias if you use friendly url, I’m working on it, the php functions used depend of the php version you use, I will change that because I can’t be right for all version.
      Are you sure that your 3 docs are not a copy of the same you made by adding a document ?

      Note that this plugin is in a very early stage of developpement, I don’t recommend its use on a production site.
        MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
        MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
        • 22095
        • 30 Posts
        Yup, they are exact replicas, must be due to the fact that the add takes place on the same page as a ditto call that contains FDM calls (3 of them). Now I need sleep...

        And yea, I’m not using it on a production site... (I’ll guess you’ll finish this plugin long before I’m happy with my site... Lot’s of work to do left there.)
          • 22549
          • 19 Posts
          Quote from: Ola at May 28, 2007, 04:18 PM

          Yup, they are exact replicas, must be due to the fact that the add takes place on the same page as a ditto call that contains FDM calls (3 of them). Now I need sleep...

          And yea, I’m not using it on a production site... (I’ll guess you’ll finish this plugin long before I’m happy with my site... Lot’s of work to do left there.)

          Same problem here, when adding a new product, 2 copies of the same new page, the difference between the pages, that "replicas" are in the root, instead of the parent.

          EDIT>>>> also replicas are not published
            • 27889
            • 415 Posts
            Have you specify the &parent in the model’s call ? and is your model published ?
            I’m currently make a lot of changes, please wait one or two days.
              MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
              MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
              • 22549
              • 19 Posts
              Quote from: Soda at May 30, 2007, 06:12 AM

              Have you specify the &parent in the model’s call ? and is your model published ?
              I’m currently make a lot of changes, please wait one or two days.

              I’ve this call

              [!FDM? &model=`27` &parent=`[*id*]` &disableedit=`1` &disabledelete=`1` &disableunpublish=`1` &disablepublish=`1` &eform_tpl=`fdmEformProduct`!]


              Also I tryed to put model at the same level of FDM call (to check replicas creation), and replicas always are created at the root level

              PS: I’ve a live site to test snippets like FDM, so if you want access just send me a PM
                • 22549
                • 19 Posts
                Error in 0.0.63.... in snippet FDM missing commentary close after this line

                Default:
                "english"

                Line : 21
                  • 27889
                  • 415 Posts
                  updated 0.7.0 in ditto call : add document only once
                  updated 0.7.1 Better alias generation

                  @pachirulo and @ola can you test the new one and report back ?
                    MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
                    MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
                    • 17554
                    • 41 Posts
                    Hi ,

                    can somebody help me and give me correct link to download FDM ... the link above don’t work ?!?!?!?

                    thnks
                      • 22095
                      • 30 Posts
                      I probably wont have time to test it until after the weekend, but if I do, I’ll report.