Jump to content
lisandi

csv.txt import option in Tab Children - Pagetree

Recommended Posts

To increase usuability and much faster working when setting up a site it would be great to have a field for csv,txt data to be imported as new pages.

Already there is a csv import module which is working good but to work fast in creating a pagetree or several subpages with several templates assigned each it is slow as you need to create the parentpage in pagetree than click - click to the csv import module and again you need to select the right template and the pagetreepage and than you can import.

While the csv import module as a immediate switch to go to the pagetree after an import it would be nice to have the same vice versa and even much much better to have simply the csv import integrated in to the child page TAB field.

---

There is also no way to get back to the Children TAB after yo have created one Children Page. It would be good that there is a way to get immediately back to the Children Tab of a Page after creating the first, than the second etc page.

Right now it is cumbersom

Click on Add new page in children tab and the new page gets created, you save and publish it (actually it would be also good to have a way to save and publish in one step)
than you need to click on the breadcrumb to get to the parentpage, which loads the complete pagetree, which is actually not needed right now as you only want to create the next children Page from the Children Tab "Add Page"

Thanks

Share this post


Link to post
Share on other sites

For the first part, how many pages are you importing with the ImportPagesCSV? Sounds like a lot if you are importing data to multiple locations in the tree so if it is something quite complex then you may be better off using the PW API and some custom PHP using a function like http://php.net/manual/en/function.fgetcsv.php to read through the CSV file and getting the API to do the importing.

Some useful topics that may help:

For the second question - going back to the Children tab after creating one child page, check out the excellent Admin Save Actions module by Nik and you can select what happens after you save a page. Very useful if you are doing a lot of new pages/edits.

Share this post


Link to post
Share on other sites

Hi Pete

Importing depends on the customer needs. If we import i.e. 30.000 and more pages we usually use the csv import module anyway. But if you have to create subpages or add some more subpages to a tree it is way easier to simply type or copy paste them in a field and click and they are there.
 

subs

subpage1

subpage2

subpage3

subpage4

subpage5

click and done!
(subs is no page but defines the column. The import module does not import the first value (column header) in the list!

The import of csv has the possibility to do exactly that. In other words it would be great to have that field on the Children Tab. This makes it very very easy to create a structure on the fly and it is fast, much faster and much more comprehensive than any api stuff by the way.

Unfortunately this module you mentioned does not offer an option to save and publish and than return to the children Tab to add another page, but it is quite useful as it can remember the settings you have chosen.

Perhaps there is a way to publish all pages of a branch in one step as otherwise it is a click and click and ... action with waiting for the pagetree to reload every time.

The Admin save module is marked as not compatible with 2.5 branch - if it is compatible it would be great if that gets adjusted. This is also with a lot of other modules where there is no 2.5 compatibility. In Terms of easy understanding and usability it would be great if module developers would update their modules and if it is only adding the "2.5". This also shows that the module get's still some attention by the developer and gets maintained. We already had contacted developers of modules and they were no more working with Process for several reasons, but in that case it would be advised that those modules get marked as no more maintained and offered to be maintained by somebody else. simply make a job offer "looking for new maintainer" and for sure there will be people stepping in there.

Share this post


Link to post
Share on other sites

Thanks Adrian for the hint

The point is not that there isn't a module existing which woudl handle the problem it is more that it would be much more usefull to have this field right in place.
Take the time:
Do setting up a complete Pagetree where you add several child branches step by step. using the csv import module, the batch editor, manual and guess how much time it would take to simply copy paste or even write the child pages into that field and click and they are there. Similar to the profields it is so much faster!

Having right in that child Tab an option to setup more than one page at once and even to sort them a-z, z-a or manually, is in point of economical workflow for developers the best option. And it is much more usable and does not at all produce an overhead.

Andi

Share this post


Link to post
Share on other sites
The point is not that there isn't a module existing which woudl handle the problem it is more that it would be much more usefull to have this field right in place.

If I understand correctly, that is exactly what Batch Child Editor does. It has a new section under the Children tab where you can paste the names of the new child pages to be created. Check out the screenshots here: https://processwire.com/talk/topic/6102-batch-child-editor/

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By SwimToWin
      Skip the "Add New" dialog page on Page Tree and elsewhere and go directly to the resulting page that shows all page fields right away. Page creation is now improving from being a two-step to becoming a one-step process.
      Scenarios:
      When only one Template can be selected: Skip the intermediate "Add New" dialog page by adding a GUID or other temporary page name that is later renamed. Show the final editing page so user can start editing all fields right away On Save: Page name is renamed with title When multiple Templates can be selected: Ask user to select Template on clicking New (before leaving the Tree Page). Then use the "one Template" flow above. (I am aware why the Page Name is needed.)
    • By Vineet Sawant
      Hi,
      I'm trying to import some heavy data into Processwire, but I'm not sure what would be the best way to do it.
      Usually I use CSV to Pages plugin, but this time the data is too heavy(~40k rows with 10+ columns of excel sheet), thus this plugin can't help.
      I also tried Tasker plugin but I can't seem to go through the setup itself, it requires some template setup but I'm totally clueless about how to do it, so that plugin is not of any use either.
      I wanted to know from you guys how you do it and in future what would be the best way to migrate thousands of rows of data in to PW.
       
      Thanks.
       
       
    • By hellerdruck
      Hi all
      I need to export all the texts from a website to a translation company (as json or csv or txt...). How can this be done? Of course manually, but this website is huge and it would take me years...
      Also, as a second step, importing the translation ...
      Any ideas anyone? Tutorials? Plugins?
      Thanks for your help.
    • By nickngqs
      Does anyone know how to do an export of a page entries to CSV using the Processwire way?
      I'm trying to setup a list where the client can see a list of user's form values.

      Example ->
      A front end form -> Upon submit -> Adds to database -> Shows on the admin of Processwire.

      From there, I can see the entries and sort stuff. And lastly I can export them in CSV.

      I'm looking at the Processwire cheatsheet and see the $files, is this the one I should be looking at? 
    • By benbyf
      Hi,
      Been updating fields on a live site from my dev site to get them in synch and I noticed repeater pages visible in my pagetree on teh live site. What might I have done to have this happen? The repeater module was enabled on both sites.

×
×
  • Create New...