Jump to content

csv.txt import option in Tab Children - Pagetree


lisandi
 Share

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

Link to comment
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.

Link to comment
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.

Link to comment
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

Link to comment
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/

Link to comment
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
 Share

×
×
  • Create New...