All questions about EDocman extension
Bulk Import
- Tuan Pham Ngoc
- Away
- Administrator
Less
More
12 years 9 months ago #14252
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Bulk Import
Hi Gabor
Could you please share the code you developed so far and I will do the remaining work (inserting data into assets table....) ? After that, I will post it here !
Regards,
Tuan
Could you please share the code you developed so far and I will do the remaining work (inserting data into assets table....) ? After that, I will post it here !
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Gabor
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
12 years 9 months ago #14262
by Gabor
Replied by Gabor on topic Re: Bulk Import
Hi Tuan,
thanks for the fast response and for your help.
I attached a file which is in the model directory. I have the file logic and the DB insert here.
I have a vew on the front-end so when sy goes there the sync happens. Lot of stuff is hardcoded.
I tried to insert directly one record into the assets table.
It is not working because of the left right calculation I guess.
Thanks,
Gabor
thanks for the fast response and for your help.
I attached a file which is in the model directory. I have the file logic and the DB insert here.
I have a vew on the front-end so when sy goes there the sync happens. Lot of stuff is hardcoded.
I tried to insert directly one record into the assets table.
It is not working because of the left right calculation I guess.
Thanks,
Gabor
Please Log in or Create an account to join the conversation.
- Gabor
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
12 years 9 months ago #14274
by Gabor
Replied by Gabor on topic Re: Bulk Import
Hi Tuan,
the model is enough for you or you need the whole component?
Thanks,
Gabor
the model is enough for you or you need the whole component?
Thanks,
Gabor
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
12 years 9 months ago #14301
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Bulk Import
Hi Gabor
Please send me the whole component. Also, it seems you forgot to attach the file (maybe you need to zip the file first before uploading). I will have time to look at it today !
Regards,
Tuan
Please send me the whole component. Also, it seems you forgot to attach the file (maybe you need to zip the file first before uploading). I will have time to look at it today !
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Gabor
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
12 years 9 months ago #14336
by Gabor
Replied by Gabor on topic Re: Bulk Import
Hi Tuan,
I attached the component. To make it work.
You can setup a menu item for it and setup a folder / category in edocman (to sync (add) the files in the folder if they are not exists in edocman).
If you go to that menu item it will check the folder. If the file is already exists (based on the filename) it does not do anything
but if the file not exist the component add the file to the __edocman_documents and __edocman_document_category table.
I was not able to add the item to the __assets table with the same method.
Please let me know what you think.
Thanks,
Gabor
I attached the component. To make it work.
You can setup a menu item for it and setup a folder / category in edocman (to sync (add) the files in the folder if they are not exists in edocman).
If you go to that menu item it will check the folder. If the file is already exists (based on the filename) it does not do anything
but if the file not exist the component add the file to the __edocman_documents and __edocman_document_category table.
I was not able to add the item to the __assets table with the same method.
Please let me know what you think.
Thanks,
Gabor
Attachment com_sync.zip not found
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
12 years 9 months ago #14337
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Bulk Import
Hi Gabor
Thanks so much for sharing the code. To be honest, I was not able to re-use your code, so I coded it from scratch and add it to default component .
Please check your email to get the modified version of the extension, install it to your site. After that, please login to back-end of your site, access to EDocman -> Bulk Import and you will see the form which allow you to import documents from a folder into a category .
Please note that at this state, it import all documents (It doesn't check whether the file existed or not). With your coding skill, I believe you can modify it so that it only imports none-existing files . Right now, I don't have enough time to do that improvement, so I will do that at this weekend !
Hope this help !
Tuan
Thanks so much for sharing the code. To be honest, I was not able to re-use your code, so I coded it from scratch and add it to default component .
Please check your email to get the modified version of the extension, install it to your site. After that, please login to back-end of your site, access to EDocman -> Bulk Import and you will see the form which allow you to import documents from a folder into a category .
Please note that at this state, it import all documents (It doesn't check whether the file existed or not). With your coding skill, I believe you can modify it so that it only imports none-existing files . Right now, I don't have enough time to do that improvement, so I will do that at this weekend !
Hope this help !
Tuan
Please Log in or Create an account to join the conversation.
- Gabor
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
12 years 9 months ago #14352
by Gabor
Replied by Gabor on topic Re: Bulk Import
Hi Tuan,
Thank you very much for your work. I tried it and it is working (but if I go under configuration there are some Notice: ).
Is that possible to add this bulk import part to the front end? like crete a menu item type to show this to registered users so they can do a synchronization?
Thanks again,
Gabor
Thank you very much for your work. I tried it and it is working (but if I go under configuration there are some Notice: ).
Is that possible to add this bulk import part to the front end? like crete a menu item type to show this to registered users so they can do a synchronization?
Thanks again,
Gabor
Please Log in or Create an account to join the conversation.
- rnomis
- Offline
- Junior Member
Less
More
- Posts: 28
- Thank you received: 1
12 years 9 months ago #14391
by rnomis
Replied by rnomis on topic Re: Bulk Import
Hi Guys,
Has the bulk uploader been included in the latest release?
I really need this for a new project with more than 80 documents to upload and is just what I have been waiting for.
Thanks,
Simon
Has the bulk uploader been included in the latest release?
I really need this for a new project with more than 80 documents to upload and is just what I have been waiting for.
Thanks,
Simon
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
12 years 9 months ago #14400
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Bulk Import
Hi
Will have it ready in download package in the next 2 or 3 days .
Regards,
Tuan
Will have it ready in download package in the next 2 or 3 days .
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- agussol
- Offline
- Senior Member
Less
More
- Posts: 75
- Thank you received: 5
12 years 9 months ago #14491
by agussol
Replied by agussol on topic Re: Bulk Import
Hello,
Looking for a replacement of Docman and auto populate feature, seems on the right way to get a new subscription soon
Looking for a replacement of Docman and auto populate feature, seems on the right way to get a new subscription soon
Please Log in or Create an account to join the conversation.
Moderators: Mr. Dam
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.