Jump to content

Images field - upload already uploaded images


Recommended Posts

Hello everyone!

I'm Marco, It's my first website with Processwire  and I like it a lot!! There is just a few things that i can not understand well. I try to looking in the forum but not have find an answer, so I write here my first question! 

When I create a new images field I can upload images only from outside website, I mean, I can not reuse the images I've already uploaded.  

Example if I have to load icons inside a repeater field I have to upload the images every time, and the system will create a folder for every images, with different url. 

There is an away for let me reuse the images I've already uploaded ?  something similar at an option to choose from a madia library like for the CKEditor ?

Thank a lot!

 

 

  • Like 1
Link to post
Share on other sites

Hi @MarcoPLY, welcome to the forums.

Imagefields are tied to a page, therefor the images you upload through this page are stored under /site/assets/files/<ID-OF-THE-PAGE>/.

You are using repeaters, maybe as one of multiple options to reuse fields on a single page. Repeaters are also pages (behind the scene), therefor the images you upload to a repeater item are stored under /site/assets/files/<ID-OF-THE-REPEATER-PAGE>/.

For all images you want to use in multiple places, one recommended way is to create a hidden page with an imagefield. Some people don't create an extra page but uses their homepage for that. Both do store all the stuff that is needed on multiple places, also text like contact data, files and not only images. But let us focus on the images now: If you need them into different pages with ckeditor fields, you need to click on the images button. In the opened dialog you can read " If you would like to select images from another page, select the page below.". Below is the name of the current page and a button or link called "change". Clicking on it opens a page tree to let you choose another page. (The homepage is the first one, what may be the reason some people store their reusable stuff there). With clicking on the pagenames you can traverse through the tree to every single page that exists in your system. Clicking "select" on the page of your desire displays all its images as thumbnails.

 

  • Like 2
Link to post
Share on other sites

First thank you to all for the help!! Great know there are many user active!

3 hours ago, horst said:

For all images you want to use in multiple places, one recommended way is to create a hidden page with an imagefield. 

@horst OK I think the this solution cloud work, so I have to make one hidden page like principal category and every page for each image to call it from the back-end page where I want show up the images, exact?  

 

Thank you @Robin S and @theo   Media Library + fieldtype-assisted-url look interesting, I can use this and replace it with image fields, but if I do I will lost all the api image? this could be nice also because i can use it with external folder like make my image folder. no?

@szabesz thank you I'll go see the page.

 

  • Like 2
Link to post
Share on other sites

I think to have fund a good way for the moment. 

Together with the two modules proposed by @theo and @Robin S I have used other one Site-wide File Manager.

This model give you the possibility to have a recap about your upload file and see your are store, and also you can delete there directly form this model. 

Of cures, it's not like the filedtype where @theo working now here! this will be so great. 

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.

×
×
  • Create New...