Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Bin/gpm install ... deletes content in images folder

Started by Muut Archive 11 years ago · 2 replies · 268 views
11 years ago

just found out that gpm install command deleted my images in my images folder. tried three different plugins, same result: images are gone after install

11 years ago

The /images folder is for Grav to use for it's processed and cached images. This does get cleared any time there is a cache clearing event. You should not be putting your images in here.

You should be storing your images ideally in the same directory as your page .md file, then using media functions to access/manipulate them.

If you would prefer to have all your images in one location, the ideal solution is to create a /user/pages/images folder and put them there. Then you can use Grav's page functions to get the page, and still treat them as media files.

The next but least attractive approach, is to store you images in /user/images. This is outside the pages/ folder, so you lose the media capabilities, but can reference them like traditional image files. Importantly though, they are still in your user/ folder.

11 years ago

All right, thank you. (Guess I have to study more grav docs...)

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1332 9 years ago
Archive · by Muut Archive, 9 years ago
2 923 9 years ago
Archive · by Muut Archive, 9 years ago
2 4053 9 years ago
Archive · by Muut Archive, 9 years ago
1 2931 9 years ago
Archive · by Muut Archive, 9 years ago
3 1109 9 years ago