Jump to content

adding files from directory


Smirftsch
 Share

Recommended Posts

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

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

  • Like 1
Link to comment
Share on other sites

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

  • 2 weeks later...

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...