Smirftsch Posted January 13, 2021 Share Posted January 13, 2021 I have a page I want to migrate to PW and it contains big download sections with hundreds of files. The files are in directories on the server already, what is the best approach to get them in a page? Is there some method I missed? Are there any plugins? Or would it be best to do with a filemanager for ckeditor? Any advice is very welcome. Link to comment Share on other sites More sharing options...
Zeka Posted January 13, 2021 Share Posted January 13, 2021 Hi @Smirftsch Take a look at this thread. There you will find code examples how you can add images from your custom path to the field of your page. Also take a look to WireFileTools and its find method that you can use to find all your images in your custom folder. https://github.com/processwire/processwire/blob/master/wire/core/WireFileTools.php#L546 1 Link to comment Share on other sites More sharing options...
Smirftsch Posted January 13, 2021 Author Share Posted January 13, 2021 Thanks, but its not images for the most part, it's mostly .zip and .7z files- other than that this method would be really nice ? After some more reading WireFileTools seem to be able to do what I need, but I am unsure yet how to use it. I'll ask in another post about it. Link to comment Share on other sites More sharing options...
Smirftsch Posted January 24, 2021 Author Share Posted January 24, 2021 Just wanted to add that I was able to solve it with WireFileTools just fine. Thanks a lot! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now