We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7662 ☆ A M B ☆
    • 276 Posts
    Hi Bruno thanks for tutorial for Export
    its work grin


    I have 1 more question:
    how import documents when not only 1 parents?

    i have file:
    parent1
    ;doc1
    ;doc2
    ;doc3
    parent2
    ;doc1
    ;doc2
    ;doc3
    ;docparent1
    ;;doc1
    ;;doc2
    ;;doc3
      http://modx.im - Russian community
      http://extras.evolution-cms.com - Repository for Evolution
      • 15001
      • 697 Posts
      An alpha English version of the tutorial is now available here in both odt and pdf formats:
      http://www.altipoint.ch/modx_ressources/fast_content_csv/
        • 4172
        • 5,888 Posts
        Quote from: dmi3y at Dec 16, 2009, 04:22 AM


        I have 1 more question:
        how import documents when not only 1 parents?

        i have file:
        parent1
        ;doc1
        ;doc2
        ;doc3
        parent2
        ;doc1
        ;doc2
        ;doc3
        ;docparent1
        ;;doc1
        ;;doc2
        ;;doc3


        one way:
        you need a reference-field for parent. make your csv like that:

        pagetitle;parenttitle
        parent1;
        doc1;parent1
        doc2;parent1
        doc3;parent1
        parent2;
        doc1;parent2
        doc2;parent2
        doc3;parent2
        docparent1;parent2
        doc1;docparent1
        doc2;docparent1
        doc3;docparent1


        then on tab field-configs type [#s#parenttitle#s#] into ’parent default-values’ at field ’pagetitle’

        this way fast_content_csv looks for parents with pagetitle stored in the field parenttitle, if not empty (must be unique, of course)
        if this field is empty it uses the default-value in parent.

        if you have exportet old docids you can go with the little tutorial I had posted some times ago in this thread.
        http://modxcms.com/forums/index.php/topic,29616.msg221513.html#msg221513
          -------------------------------

          you can buy me a beer, if you like MIGX

          http://webcmsolutions.de/migx.html

          Thanks!
          • 7662 ☆ A M B ☆
          • 276 Posts
          thanks smiley

          I used to do in 2 stages

          1. import parent document
          2. import child document (where indicated parent Id )

          but your solution is universal and saves time
            http://modx.im - Russian community
            http://extras.evolution-cms.com - Repository for Evolution
            • 15001
            • 697 Posts
            Hi,

            Installation problem solved
            I could solve the installation problem that I had.
            (I deleted the corresponding messages since explanations are given below.)
            The parsing error was due to the fact I had paste fast_content_csv.php code directly in the module instead of module_fast_content_csv.php.

            Bruno, as you only copy-pasted the comments for the module at the top of this thread, it would be useful to edit the top message and tell explicitely which file to copy-paste in the module.

            The tutorials
            The "fast_content_cvs" modules and plugin appears great tools, but I’m lost concerning the "Import" process.
            I’m not sure that I have all the tutorials.
            The tutorial files I have are tutorial.odt, tutorial_08.odt, tutorial_09.odt and the corresponding pdf files.
            I don’t understand your tutorial very well and a more graphical explanation of the interface (maybe done with OO Draw) and the concepts behind would be much useful.
            PHx is new to me. Some explanations about things like "[#t#id#t#]" would be much useful.


            Exporting - Importing one branch of the document tree

            Step 1 - Exporting from Site A
            I could easily export one branch of my document tree using the plugin and by clicking a document in the tree.

            Step 2 - Creating fast_content_csv workspace from Site B
            In the site from which I want to import that branch, I could create a workspace.
            It’s not obvious to click the "Next" button to be able to create a workspace.

            After clicking the "Next" button, I chose the "Workspace" tab and wrote a new workspace name and clicked the "Change Workspace" button.
            This create the new workspace as in listed in "\assets\modules\fast_content_csv\config\workspaces.csv".
            You don’t need to worry about the content of this file as it is updated automatically from the modul, but it’s however interesting to have a glance at it.

            The workspace itself is in "assets\files\fast_content_csv\name_of_new_workspace_folder".

            Step 3 - Selecting the file to import from Site B
            After the workpace was created, I went to the "Configuration" tab and chose the csv file to import.
            Then, clicked the "Save workspace" to save the settings in the "workspaces.csv" file.

            Step 4 - Selecting import options from site B
            This is where I was failed as I don’t understand well what to choose.
            I selected the file to import as "Source file".
            For the template, I chose "--from csv (id)--".
            I checked the Export all "doc-fields" and "TV-fields" checkboxes.
            Finally, I clicked the "Save Config" button.

            Step 5 - Importing from site B
            On the "Start" tab, I chose action "Insert" and checked "Run in test" mode.

            I get something like this:
            ---------------Testmode!(no action): Insert Document 
            Dokumentvariablen 
            createdon:1261136217
            publishedon:1261136217
            editedon:1261136217
            parent:0
            Templatevariablen 
            ---------------Testmode!(no action): Insert Document 
            Dokumentvariablen 
            createdon:1261136217
            publishedon:1261136217
            editedon:1261136217
            parent:0
            Templatevariablen


            At the top of the page Action is 0, although I chose the "Insert" action on the start tab.
            I don’t know if this is because I set no action in the workspace.
            Should I write "Insert" as a new action on the "Workspace" tab and save it?

            I’m totally lost about how to set the Fields-Config tab and if it is necessary.
            Some example screenshots and explanations about this would be much useful.

            Is there a was to specify under which parent document to import. Or is document 0 (site root) used by default?

            What I need to do is importing one branch with children and sub-children.
            I can import them sub-branch by sub-branch if more easy.
            Some documents to import have an id that already exists, so I should renumber those ones automatically during the import process.

            Thanks.
              • 25715
              • 8 Posts
              Thanks a lot, thats a realy usefull module. But he not import data on not-English language, for example on Russian)
                • 1611
                • 591 Posts
                Lucy, maybe you forget to delete plugin?
                  • 7575
                  • 85 Posts
                  I need to create a document tree based on dates (one for a bunch of dates in the future)
                  and let them be published every time on that date.

                  I was wondering, will I be able to do this with the fast_content_csv?
                  I create an excell file with publish date/title/content/.....
                  and then import it?

                  also, I am using revolution 2.0.0-pl and I don’t seem to find any comments on how to install/use in revolution?
                    www.tornooi.net online database for (sport) events in dutch.
                    To be redesigned, rewritten to modx with multiple languages...
                    ANY help appreciated, I cannot offer money but I can offer free advertising on the site. just message me.
                    • 7662 ☆ A M B ☆
                    • 276 Posts
                    Tell my how to do the following:

                    1 Import price list with the following fields:
                    pagetitle; parent-pagetitle; introtext; others ...

                    2 Export price list with the following fields:
                    id; pagetitle; Parent-pagetitle; introtext; others ...


                    It is very important because it is very time consuming to coordinate
                    parent-pagetitle with parent-id in Excel

                      http://modx.im - Russian community
                      http://extras.evolution-cms.com - Repository for Evolution
                      • 7575
                      • 85 Posts
                      sorry for the bump,
                      but does anyone know if this works in revolution?
                      It will have a great influence on my descision to use modx for future projects!
                      if it doesn’t, is there anyone that can make it work in revolution?

                      grts

                      djemmers
                        www.tornooi.net online database for (sport) events in dutch.
                        To be redesigned, rewritten to modx with multiple languages...
                        ANY help appreciated, I cannot offer money but I can offer free advertising on the site. just message me.